-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.json
58 lines (56 loc) · 2.16 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
{
//"extends": [],
"overrides": [
{
"rules": {
"indent": "off",
"@typescript-eslint/indent": ["warn", 4, {"SwitchCase": 1}],
"comma-dangle": "off",
"@typescript-eslint/comma-dangle": ["error", "never"],
"import/newline-after-import": "off",
"@typescript-eslint/import/newline-after-import": "off",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": "off",
"spaced-comment": "off",
"@typescript-eslint/spaced-comment": "off",
"max-len": "off",
"@typescript-eslint/max-len": ["warn", {"code": 120, "ignoreTemplateLiterals": true, "ignoreStrings": true, "ignoreComments": true}],
"no-console": "off",
"@typescript-eslint/no-console": "off",
"no-trailing-spaces": "off",
"@typescript-eslint/no-trailing-spaces": "off",
"lines-between-class-members": "off",
"@typescript-eslint/lines-between-class-members": "off"
},
"extends": "airbnb-typescript/base",
"files": ["*.ts"], // Your TypeScript files extension
"parserOptions": {
"project": ["./tsconfig.json"] // Specify it only for TypeScript files
}
},
{
"rules": {
"indent": ["warn", 4, {"SwitchCase": 1}],
"comma-dangle": ["error", "never"],
"import/newline-after-import": "off",
"no-use-before-define": "off",
"spaced-comment": "off",
"max-len": ["warn", {"code": 120, "ignoreTemplateLiterals": true, "ignoreStrings": true, "ignoreComments": true}],
"no-console": "off",
"no-trailing-spaces": "off",
"lines-between-class-members": "off"
},
"extends": "airbnb-base",
"files": ["*.js"]
}
],
"plugins": [
"only-warn"
],
"parserOptions": {
"ecmaVersion": 2017
},
"env": {
"es6": true
}
}