This repository has been archived by the owner on Dec 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
51 lines (50 loc) · 1.72 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
{
"env": {
"browser": true
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module",
"project": "./tsconfig.json"
},
"overrides": [
{
"files": ["*.js"],
"extends": ["eslint:recommended",
"google"],
"rules": {
"max-len": ["error", { "code": 120 }],
"indent": ["error", 4]
}
},
{
"files": ["*.ts"],
"plugins": [
"@typescript-eslint"
],
"extends": ["plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"airbnb-typescript/base"],
"rules": {
"max-len": ["error", { "code": 120 }],
"indent": "off",
"semi": [2, "always"],
"quotes": ["error", "single"],
"no-console": 2,
"newline-per-chained-call": "off",
"max-classes-per-file": ["error", 2],
"@typescript-eslint/indent": ["error", 4],
"no-case-declarations": "off",
"class-methods-use-this": "off",
"@typescript-eslint/explicit-function-return-type": 2,
"@typescript-eslint/prefer-optional-chain": 2,
"@typescript-eslint/consistent-type-imports": 2,
"@typescript-eslint/no-confusing-non-null-assertion": 2,
"@typescript-eslint/no-duplicate-imports": 2,
"@typescript-eslint/no-redeclare": 2,
"@typescript-eslint/no-shadow": 2
}
}
]
}