woocommerce/plugins/woocommerce-admin/packages/eslint-plugin/configs/recommended.js

16 lines
291 B
JavaScript

module.exports = {
extends: [
'plugin:react-hooks/recommended',
require.resolve( './custom.js' ),
'plugin:@wordpress/eslint-plugin/recommended',
],
globals: {
wcSettings: 'readonly',
},
plugins: [ '@wordpress' ],
rules: {
radix: 'error',
yoda: [ 'error', 'never' ],
},
};