Skip to content

Commit

Permalink
Lodash: Refactor away from _.kebabCase() in generic template modal (W…
Browse files Browse the repository at this point in the history
…ordPress#51910)

* Lodash: Refactor away from _.kebabCase() in generic template modal

* Deprecate _.kebabCase()
  • Loading branch information
tyxla authored and sethrubenstein committed Jul 13, 2023
1 parent 86d29bd commit aa507a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ const restrictedImports = [
'isPlainObject',
'isString',
'isUndefined',
'kebabCase',
'keyBy',
'keys',
'last',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* External dependencies
*/
import { kebabCase } from 'lodash';
import { paramCase as kebabCase } from 'change-case';

/**
* WordPress dependencies
Expand Down

0 comments on commit aa507a4

Please sign in to comment.