2023-03-22 11:21:33 +01:00
|
|
|
module.exports = {
|
|
|
|
root: true,
|
2023-08-10 08:32:54 +01:00
|
|
|
extends: ['custom/front/typescript', 'plugin:storybook/recommended'],
|
2023-08-07 10:44:05 +01:00
|
|
|
parserOptions: {
|
|
|
|
project: ['./tsconfig.eslint.json'],
|
|
|
|
},
|
2023-09-11 10:00:13 +02:00
|
|
|
rules: {
|
|
|
|
'import/no-unresolved': [
|
|
|
|
'error',
|
|
|
|
{
|
|
|
|
// Eslint does not detect the package.json exports field
|
|
|
|
// and reports broken imports for the following imports
|
|
|
|
ignore: ['@strapi/design-system/v2'],
|
|
|
|
},
|
|
|
|
],
|
|
|
|
},
|
2023-08-07 10:44:05 +01:00
|
|
|
settings: {
|
|
|
|
'import/resolver': {
|
|
|
|
typescript: {
|
|
|
|
project: './tsconfig.eslint.json',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
},
|
|
|
|
overrides: [
|
|
|
|
{
|
|
|
|
files: ['./jest.config.front.js', './webpack.config.js'],
|
|
|
|
env: {
|
|
|
|
node: true,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
'@typescript-eslint/no-var-requires': 'off',
|
|
|
|
},
|
|
|
|
},
|
|
|
|
{
|
|
|
|
files: ['./tests/*'],
|
|
|
|
env: {
|
|
|
|
jest: true,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
],
|
2023-03-22 11:21:33 +01:00
|
|
|
};
|