2018-11-13 19:21:04 +00:00
|
|
|
module.exports = {
|
2020-02-11 16:13:20 +00:00
|
|
|
extends: [
|
|
|
|
'plugin:@wordpress/eslint-plugin/recommended',
|
|
|
|
'prettier',
|
|
|
|
'plugin:jest/recommended',
|
|
|
|
],
|
2018-11-13 19:21:04 +00:00
|
|
|
env: {
|
2018-11-16 15:43:51 +00:00
|
|
|
'jest/globals': true,
|
2018-11-13 19:21:04 +00:00
|
|
|
},
|
|
|
|
globals: {
|
2020-02-10 13:54:57 +00:00
|
|
|
wcSettings: 'readonly',
|
2020-02-11 16:13:20 +00:00
|
|
|
page: true,
|
|
|
|
browser: true,
|
|
|
|
context: true,
|
|
|
|
jestPuppeteer: true,
|
2018-11-13 19:21:04 +00:00
|
|
|
},
|
2019-11-08 16:30:11 +00:00
|
|
|
plugins: [ 'jest', 'woocommerce' ],
|
2018-11-13 19:21:04 +00:00
|
|
|
rules: {
|
2019-08-09 16:18:46 +00:00
|
|
|
'@wordpress/dependency-group': 'off',
|
2019-11-08 16:30:11 +00:00
|
|
|
'woocommerce/dependency-group': 'error',
|
2020-02-10 13:24:15 +00:00
|
|
|
'woocommerce/feature-flag': 'error',
|
2019-08-09 16:18:46 +00:00
|
|
|
'valid-jsdoc': 'off',
|
2020-01-08 10:48:43 +00:00
|
|
|
radix: 'error',
|
2019-11-07 14:45:45 +00:00
|
|
|
yoda: [ 'error', 'never' ],
|
2019-09-05 15:09:31 +00:00
|
|
|
},
|
2018-11-13 19:21:04 +00:00
|
|
|
};
|