woocommerce/plugins/woocommerce-blocks/.eslintrc.js

30 lines
608 B
JavaScript

module.exports = {
extends: [
'plugin:@wordpress/eslint-plugin/recommended',
'prettier',
'plugin:jest/recommended',
'plugin:react-hooks/recommended',
],
env: {
'jest/globals': true,
},
globals: {
wcSettings: 'readonly',
wcStoreApiNonce: 'readonly',
page: true,
browser: true,
context: true,
jestPuppeteer: true,
fetchMock: true,
},
plugins: [ 'jest', 'woocommerce' ],
rules: {
'@wordpress/dependency-group': 'off',
'woocommerce/dependency-group': 'error',
'woocommerce/feature-flag': 'off',
'valid-jsdoc': 'off',
radix: 'error',
yoda: [ 'error', 'never' ],
},
};