-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.cjs
33 lines (33 loc) · 885 Bytes
/
.eslintrc.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/* eslint-env node */
module.exports = {
root: true,
env: { es2022: true },
parserOptions: { ecmaVersion: 13 },
extends: ['eslint:recommended', 'airbnb-base', 'prettier'],
rules: {
'import/no-extraneous-dependencies': ['warn', { packageDir: './' }]
},
ignorePatterns: ['dist', 'node_modules'],
overrides: [
{
files: ['./**/*.{ts,tsx}'],
extends: [
'plugin:@typescript-eslint/recommended',
'airbnb-typescript/base',
'plugin:@typescript-eslint/recommended-requiring-type-checking',
'prettier'
],
parser: '@typescript-eslint/parser',
parserOptions: {
project: './tsconfig.eslint.json',
tsconfigRootDir: __dirname
},
plugins: ['@typescript-eslint'],
rules: {
'import/no-extraneous-dependencies': ['warn', { packageDir: './' }],
'import/extensions': 'off',
'@typescript-eslint/no-unsafe-return': 'warn'
}
}
]
};