woocommerce/packages/js/eslint-plugin/configs/custom.js

25 lines
427 B
JavaScript

module.exports = {
plugins: [ '@wordpress', '@woocommerce' ],
rules: {
'@woocommerce/dependency-group': 'error',
},
settings: {
jsdoc: {
mode: 'typescript',
},
},
overrides: [
{
files: [
'**/@(test|__tests__)/**/*.js',
'**/?(*.)test.js',
'**/tests/**/*.js',
],
extends: [
'plugin:@wordpress/eslint-plugin/test-unit',
require.resolve( './react-testing-library' ),
],
},
],
};