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

18 lines
373 B
JavaScript

module.exports = {
extends: [ 'plugin:@wordpress/eslint-plugin/recommended', 'prettier' ],
env: {
'jest/globals': true,
},
globals: {
wcSettings: true,
},
plugins: [ 'jest', 'woocommerce' ],
rules: {
'@wordpress/dependency-group': 'off',
'woocommerce/dependency-group': 'error',
'valid-jsdoc': 'off',
radix: 'error',
yoda: [ 'error', 'never' ],
},
};