forked from microsoft/vscode-python
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
109 lines (109 loc) · 2.13 KB
/
.eslintrc
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
{
"env": {
"node": true,
"es6": true,
"mocha": true
},
"parser": "@typescript-eslint/parser",
"plugins": [
"@typescript-eslint"
],
"extends": [
"airbnb",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"rules": {
// Overriding ESLint rules with Typescript-specific ones
"@typescript-eslint/ban-ts-comment": [
"error",
{
"ts-ignore": "allow-with-description"
}
],
"no-bitwise": "off",
"no-dupe-class-members": "off",
"@typescript-eslint/no-dupe-class-members": "error",
"no-empty-function": "off",
"@typescript-eslint/no-empty-function": [
"error"
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"no-use-before-define": "off",
"@typescript-eslint/no-use-before-define": [
"error",
{
"functions": false
}
],
"no-useless-constructor": "off",
"@typescript-eslint/no-useless-constructor": "error",
"@typescript-eslint/no-var-requires": "off",
// Other rules
"comma-dangle": "off",
"func-names": "off",
"import/extensions": "off",
"import/namespace": "off",
"import/no-extraneous-dependencies": "off",
"import/no-unresolved": [
"error",
{
"ignore": [
"monaco-editor",
"vscode"
]
}
],
"import/prefer-default-export": "off",
"indent": [
"error",
4,
{
"SwitchCase": 1
}
],
"max-classes-per-file": "off",
"max-len": [
"error",
{
"code": 120
}
],
"no-confusing-arrow": [
"error",
{
"allowParens": true
}
],
"no-console": "off",
"no-control-regex": "off",
"no-extend-native": "off",
"no-multi-str": "off",
"no-param-reassign": "off",
"no-prototype-builtins": "off",
"no-template-curly-in-string": "off",
"no-underscore-dangle": "off",
"no-useless-escape": "off",
"no-void": [
"error",
{
"allowAsStatement": true
}
],
"operator-assignment": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [
".tsx"
]
}
],
"strict": "off"
}
}