mirror of
https://github.com/strapi/strapi.git
synced 2025-07-27 19:10:01 +00:00
42 lines
855 B
JavaScript
42 lines
855 B
JavaScript
module.exports = {
|
|
root: true,
|
|
extends: ['custom/front/typescript', 'plugin:storybook/recommended'],
|
|
parserOptions: {
|
|
project: ['./tsconfig.eslint.json'],
|
|
},
|
|
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'],
|
|
},
|
|
],
|
|
},
|
|
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,
|
|
},
|
|
},
|
|
],
|
|
};
|