2023-09-24 01:08:01 +03:00
|
|
|
const baseConfig = require('./.eslintrc.js')
|
|
|
|
|
|
|
|
module.exports = {
|
|
|
|
...baseConfig,
|
|
|
|
overrides: [
|
2023-10-16 19:23:53 +03:00
|
|
|
baseConfig.overrides[0],
|
2023-09-24 01:08:01 +03:00
|
|
|
{
|
|
|
|
...baseConfig.overrides[0],
|
2023-10-16 19:23:53 +03:00
|
|
|
files: ['packages/**/*.ts'],
|
|
|
|
extends: ['plugin:@typescript-eslint/strict-type-checked', 'plugin:import/typescript'],
|
2023-09-24 01:08:01 +03:00
|
|
|
parser: '@typescript-eslint/parser',
|
|
|
|
parserOptions: {
|
|
|
|
project: true,
|
|
|
|
tsconfigRootDir: __dirname,
|
|
|
|
},
|
|
|
|
rules: {
|
|
|
|
...baseConfig.overrides[0].rules,
|
2023-10-16 19:23:53 +03:00
|
|
|
'@typescript-eslint/restrict-template-expressions': ['error', { allowNever: true }],
|
2023-09-24 01:08:01 +03:00
|
|
|
},
|
|
|
|
reportUnusedDisableDirectives: false,
|
|
|
|
},
|
|
|
|
...baseConfig.overrides.slice(1),
|
2023-10-16 19:23:53 +03:00
|
|
|
{
|
|
|
|
files: ['e2e/**'],
|
|
|
|
rules: {
|
|
|
|
'import/no-unresolved': 'off',
|
|
|
|
},
|
|
|
|
},
|
2023-09-24 01:08:01 +03:00
|
|
|
],
|
|
|
|
}
|