Skip to content

Commit

Permalink
Merge pull request #692 from westonruter/update/eslint
Browse files Browse the repository at this point in the history
Update ESLint setup
  • Loading branch information
westonruter authored Mar 6, 2023
2 parents b42cac4 + 4928680 commit 11581e6
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 37 deletions.
23 changes: 0 additions & 23 deletions .eslintrc

This file was deleted.

24 changes: 24 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
module.exports = {
root: true,
extends: ['plugin:@wordpress/eslint-plugin/recommended'],
settings: {
react: {
pragma: 'wp',
version: 'detect',
},
},
env: {
browser: true,
},
rules: {
'@wordpress/i18n-text-domain': [
'error',
{
allowedTextDomain: [
'syntax-highlighting-code-block',
'default',
],
},
],
},
};
1 change: 1 addition & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@wordpress/prettier-config"
20 changes: 7 additions & 13 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,11 @@
"@wordpress/editor": "13.5.0",
"@wordpress/element": "5.5.0",
"@wordpress/env": "5.13.0",
"@wordpress/eslint-plugin": "^14.1.0",
"@wordpress/hooks": "3.28.0",
"@wordpress/i18n": "4.28.0",
"@wordpress/scripts": "25.5.0",
"eslint": "^8.34.0",
"eslint-config-wordpress": "^2.0.0",
"grunt": "^1.6.1",
"grunt-contrib-copy": "^1.0.0",
"grunt-wp-deploy": "^2.1.2",
Expand Down

0 comments on commit 11581e6

Please sign in to comment.