-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
62 lines (62 loc) · 1.46 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
{
"root": true,
"env": {
"es2020": true,
"node": true,
"jest": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": ["@typescript-eslint", "jest", "prettier"],
"extends": [
"airbnb-base",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"plugin:jest/recommended",
"prettier"
],
"settings": {
"import/resolver": {
"typescript": {}
}
},
"rules": {
"prettier/prettier": "error",
"class-methods-use-this": "off",
"no-plusplus": [
"error",
{
"allowForLoopAfterthoughts": true
}
],
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"ts": "never"
}
],
"import/no-extraneous-dependencies": "off",
"import/prefer-default-export": "off",
"guard-for-in": "off",
"max-classes-per-file": "off",
"max-len": ["error", 120],
"no-restricted-syntax": ["error", "ForInStatement", "LabeledStatement", "WithStatement"],
"no-return-await": "off",
"no-shadow": "off",
"no-useless-constructor": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": [
"error",
{
"allowArgumentsExplicitlyTypedAsAny": true
}
],
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-shadow": "error"
}
}