Add @woocommerce/eslint-plugin with basic configuration

[MAILPOET-6438]
This commit is contained in:
Rostislav Wolny
2025-01-16 14:08:09 +01:00
committed by Oluwaseun Olorunsola
parent dbe2e6c7e2
commit 3c7b5aba85
3 changed files with 414 additions and 41 deletions

View 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',
},
},
],
};

View File

@ -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"
},