-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
87 lines (87 loc) · 1.86 KB
/
.eslintrc.json
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
{
"env": {
"es6": true,
"node": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.eslint.json"
},
"extends": [
"plugin:import/typescript",
"airbnb-base",
"airbnb-typescript/base",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
"plugin:jest/recommended"
],
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"rules": {
"semi": [
"error",
"always"
],
"quotes": [
"error",
"single"
],
"global-require": "off",
"class-methods-use-this": "off",
"max-classes-per-file": "off",
"no-param-reassign": "off",
"prefer-template": "off",
"no-console": "off",
"no-underscore-dangle": [
"error",
{
"allowAfterThis": true
}
],
"prefer-destructuring": "off",
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-restricted-syntax": [
"error",
"ForInStatement",
"LabeledStatement",
"WithStatement"
],
"no-return-assign": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"import/prefer-default-export": "off",
"import/no-dynamic-require": "off",
"@typescript-eslint/no-explicit-any": 1,
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/explicit-function-return-type": [
"error",
{
"allowExpressions": true
}
]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"],
"extensions": [".js", ".ts", ".d.ts"],
"moduleDirectory": ["node_modules", "src/"]
}
}
}
}