Add @woocommerce/eslint-plugin with basic configuration
[MAILPOET-6438]
This commit is contained in:
committed by
Oluwaseun Olorunsola
parent
dbe2e6c7e2
commit
3c7b5aba85
11
packages/js/email-editor/.eslintrc.js
Normal file
11
packages/js/email-editor/.eslintrc.js
Normal file
@ -0,0 +1,11 @@
|
||||
module.exports = {
|
||||
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
|
||||
overrides: [
|
||||
{
|
||||
files: [ '**/*.js', '**/*.ts', '**/*.jsx', '**/*.tsx' ],
|
||||
rules: {
|
||||
'react/react-in-jsx-scope': 'off',
|
||||
},
|
||||
},
|
||||
],
|
||||
};
|
@ -69,9 +69,11 @@
|
||||
"@types/wordpress__edit-post": "^7.5.7",
|
||||
"@types/wordpress__editor": "^13.6.8",
|
||||
"@types/wordpress__media-utils": "^4.14.4",
|
||||
"@woocommerce/eslint-plugin": "^2.3.0",
|
||||
"@wordpress/prettier-config": "^4.11.0",
|
||||
"@wordpress/scripts": "27.9.0",
|
||||
"core-js": "^3.37.1",
|
||||
"eslint-import-resolver-typescript": "^3.7.0",
|
||||
"prettier": "npm:wp-prettier@^3.0.3",
|
||||
"wp-types": "^3.65.0"
|
||||
},
|
||||
|
Reference in New Issue
Block a user