2020-02-14 02:23:21 +00:00
|
|
|
module.exports = {
|
2020-05-06 08:00:21 +00:00
|
|
|
extends: [
|
|
|
|
'plugin:@wordpress/eslint-plugin/recommended',
|
|
|
|
'prettier',
|
2020-07-21 00:12:19 +00:00
|
|
|
'prettier/react',
|
2020-05-06 08:00:21 +00:00
|
|
|
'plugin:testing-library/recommended',
|
|
|
|
'plugin:testing-library/react',
|
2020-05-11 14:17:26 +00:00
|
|
|
'plugin:jest-dom/recommended',
|
2020-05-06 08:00:21 +00:00
|
|
|
],
|
2020-02-14 02:23:21 +00:00
|
|
|
env: {
|
|
|
|
'jest/globals': true,
|
|
|
|
},
|
|
|
|
globals: {
|
|
|
|
wcSettings: true,
|
|
|
|
},
|
2020-05-11 14:17:26 +00:00
|
|
|
plugins: [ 'jest', 'jest-dom', 'testing-library' ],
|
2020-02-14 02:23:21 +00:00
|
|
|
rules: {
|
|
|
|
'@wordpress/dependency-group': 'off',
|
|
|
|
'valid-jsdoc': 'off',
|
|
|
|
radix: 'error',
|
|
|
|
yoda: [ 'error', 'never' ],
|
|
|
|
},
|
|
|
|
};
|