-
Notifications
You must be signed in to change notification settings - Fork 115
/
.eslintrc
49 lines (48 loc) · 1.31 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
{
"env": {
"es6": true,
"node": true
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
// "plugin:@typescript-eslint/recommended-requiring-type-checking",
"plugin:@typescript-eslint/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": 6,
"project": "./tsconfig.json",
"sourceType": "module"
},
"plugins": [
"eslint-plugin-deprecation",
"eslint-plugin-no-null",
"@typescript-eslint"
],
"root": true,
"rules": {
// Configure additional checks
"comma-spacing": "error",
"deprecation/deprecation": "error",
"no-null/no-null": "error",
"eol-last": "error",
"indent": ["error", "tab", {"SwitchCase": 1}],
"no-console": "error",
"no-trailing-spaces": "error",
"prefer-const": ["error", {"ignoreReadBeforeAssign": true}],
"semi": "error",
"space-infix-ops": "error",
"@typescript-eslint/ban-tslint-comment": "error",
// Disable some recommended checks (until we can address them)
"no-cond-assign": "off",
"no-fallthrough": "off",
"no-prototype-builtins": "off",
"no-useless-escape": "off",
"prefer-spread": "off",
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": "off"
}
}