woocommerce/plugins/woocommerce-admin/.eslintrc.js

55 lines
1.2 KiB
JavaScript
Raw Normal View History

module.exports = {
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
plugins: [ 'import' ],
root: true,
overrides: [
{
2022-03-29 02:46:37 +00:00
files: [ 'client/**/*.js', 'client/**/*.jsx', 'client/**/*.tsx' ],
rules: {
'react/react-in-jsx-scope': 'off',
},
},
],
settings: {
'import/core-modules': [
'@woocommerce/ai',
'@woocommerce/admin-layout',
'@woocommerce/components',
'@woocommerce/customer-effort-score',
'@woocommerce/currency',
'@woocommerce/csv-export',
'@woocommerce/data',
'@woocommerce/date',
'@woocommerce/explat',
'@woocommerce/internal-js-tests',
'@woocommerce/navigation',
'@woocommerce/number',
'@woocommerce/onboarding',
'@woocommerce/product-editor',
'@woocommerce/settings',
'@woocommerce/tracks',
'@woocommerce/experimental',
'@wordpress/components',
'@wordpress/core-data',
'@wordpress/element',
'@wordpress/blocks',
'@wordpress/block-editor',
'@wordpress/block-library',
'@wordpress/notices',
'dompurify',
'@react-spring/web',
'react-router-dom',
'redux',
'xstate',
'xstate5',
],
'import/resolver': {
node: {},
webpack: {},
typescript: {
project: [ 'plugins/woocommerce-admin/tsconfig.json' ],
},
},
},
};