Skip to content

Commit 37bf676

Browse files
committed
Add ESLint configuration file
Introduces .eslintrc.js with WordPress recommended settings and customizes import/no-unresolved rule to ignore @wordpress/ imports.
1 parent 268b173 commit 37bf676

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.eslintrc.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
module.exports = {
2+
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
3+
rules: {
4+
'import/no-unresolved': [
5+
'error',
6+
{
7+
ignore: [ '^@wordpress/' ],
8+
},
9+
],
10+
},
11+
};

0 commit comments

Comments
 (0)