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