Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,13 @@ module.exports = {
{ allowConstantExport: true },
],
},
settings: {
'import/resolver': {
node: {
// Matches file extensions supported by WordPress build tools
// See: https://github.com/WordPress/gutenberg/blob/760acec3522516c2212e0213ff10cd2a8c9e8df0/tools/eslint/import-resolver.js#L15
extensions: [ '.js', '.jsx', '.mjs', '.cjs' ],
},
},
},
Comment on lines +20 to +28
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Address lint errors following recent changes to the
@wordpress/eslint-plugin package. Align with the Gutenberg project.

See: WordPress/gutenberg#72978

./GutenbergKit/src/utils/wordpress-globals.js
  47:41  error  Unable to resolve path to module '@wordpress/preferences-persistence'  import/no-unresolved

};
Loading
Loading