2022-03-28 10:39:16 +00:00
|
|
|
module.exports = {
|
|
|
|
extends: [ 'plugin:@woocommerce/eslint-plugin/recommended' ],
|
|
|
|
root: true,
|
2023-03-01 22:36:38 +00:00
|
|
|
ignorePatterns: [ '**/test/*.ts', '**/test/*.tsx' ],
|
2022-03-28 10:39:16 +00:00
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: [
|
|
|
|
'**/stories/*.js',
|
|
|
|
'**/stories/*.jsx',
|
|
|
|
'**/docs/example.js',
|
|
|
|
],
|
|
|
|
rules: {
|
|
|
|
'import/no-unresolved': [
|
|
|
|
'warn',
|
|
|
|
{ ignore: [ '@woocommerce/components' ] },
|
|
|
|
],
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2024-07-08 06:39:39 +00:00
|
|
|
settings: {
|
|
|
|
'import/core-modules': [
|
|
|
|
'@woocommerce/components',
|
|
|
|
'@woocommerce/currency',
|
|
|
|
'@woocommerce/data',
|
|
|
|
'@woocommerce/date',
|
|
|
|
'@woocommerce/navigation',
|
|
|
|
'@storybook/react',
|
|
|
|
'@automattic/tour-kit',
|
|
|
|
'@wordpress/blocks',
|
|
|
|
'@wordpress/components',
|
|
|
|
'@wordpress/element',
|
|
|
|
'@wordpress/media-utils',
|
|
|
|
'dompurify',
|
|
|
|
'downshift',
|
|
|
|
'moment',
|
|
|
|
],
|
|
|
|
'import/resolver': {
|
|
|
|
node: {},
|
|
|
|
webpack: {},
|
|
|
|
typescript: {},
|
|
|
|
},
|
|
|
|
},
|
2022-03-28 10:39:16 +00:00
|
|
|
};
|