-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path.eslintrc.js
63 lines (63 loc) · 1.58 KB
/
.eslintrc.js
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
module.exports = {
root: true,
env: { es6: true },
ignorePatterns: ['node_modules', 'build', 'coverage', 'tests/outputs'],
globals: { BigInt: true, console: true, WebAssembly: true },
overrides: [
{
files: ['**/*.ts', '**/*.tsx'],
extends: [
'airbnb-base',
'airbnb-typescript/base',
'airbnb/hooks',
'plugin:@typescript-eslint/recommended',
'plugin:import/recommended',
'plugin:import/typescript',
'prettier',
],
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
rules: {
'no-underscore-dangle': [
'error',
{
allowAfterThis: true,
allowAfterSuper: true,
allowAfterThisConstructor: true,
},
],
'no-restricted-imports': 'off',
'@typescript-eslint/no-explicit-any': 'off',
'@typescript-eslint/explicit-module-boundary-types': 'off',
},
settings: {
'import/parsers': {
'@typescript-eslint/parser': ['.ts', '.tsx'],
},
'import/resolver': {
typescript: {
project: './tsconfig.json',
},
node: {
extensions: ['.js', '.ts', '.jsx', '.tsx', '.json'],
},
},
},
},
{
files: ['./src/lib/**/*.ts'],
rules: {
'import/prefer-default-export': 'off',
},
},
{
files: ['./tests/**/*.ts'],
rules: {
'@typescript-eslint/no-var-requires': 'off',
'global-require': 'off',
},
},
],
}