Checkout .eslintrc.js from add/playwright-e2e

This commit is contained in:
Rodel 2022-05-20 15:16:50 +08:00
parent 99796df9d4
commit 86d604756c
1 changed files with 11 additions and 2 deletions

View File

@ -6,7 +6,6 @@ module.exports = {
es6: true,
node: true,
},
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
globals: {
wp: true,
wpApiSettings: true,
@ -16,7 +15,6 @@ module.exports = {
rules: {
camelcase: 0,
indent: 0,
'max-len': [ 2, { code: 140 } ],
'no-console': 1,
},
parser: 'babel-eslint',
@ -28,4 +26,15 @@ module.exports = {
jsx: true,
},
},
overrides: [
{
files: ["e2e/tests/**/*.spec.js", "e2e/*.js"],
rules: {
"jest/no-test-callback": "off",
"@wordpress/no-unsafe-wp-apis": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": "off"
}
}
]
};