-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
101 lines (101 loc) · 2.88 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
{
"rules": {
"@typescript-eslint/ban-ts-ignore": ["off"],
"@typescript-eslint/explicit-function-return-type": "error",
"@typescript-eslint/interface-name-prefix": ["off"],
"@typescript-eslint/no-explicit-any": ["off", { "fixToUnknown": true, "ignoreRestArgs": true }],
"@typescript-eslint/no-unused-vars": "warn",
"@typescript-eslint/no-unused-expressions": "error",
"@typescript-eslint/no-var-requires": ["off"],
"@typescript-eslint/no-use-before-define": "error",
"@typescript-eslint/no-non-null-assertion": ["off"],
"@typescript-eslint/no-duplicate-enum-values": "off",
"array-bracket-spacing": ["warn", "never"],
"capIsNew": ["off"],
"comma-dangle": ["error", "always-multiline"],
"computed-property-spacing": "warn",
"deprecation/deprecation": "warn",
"default-case": ["error", { "commentPattern": "^no default$" }],
"eol-last": ["error", "always"],
"indent": ["warn", 2, {"SwitchCase": 1}],
"keyword-spacing": [
"warn",
{
"before": true,
"after": true
}
],
"linebreak-style": ["error", "unix"],
"max-len": [
"warn",
{
"code": 250,
"ignoreComments": true,
"ignoreUrls": true
}
],
"new-cap": 0,
"no-async-promise-executor": ["off"],
"no-await-in-loop": "warn",
"no-caller": 2,
"no-compare-neg-zero": "error",
"no-cond-assign": [2, "except-parens"],
"no-empty-pattern": ["off"],
"no-template-curly-in-string": "error",
"no-unsafe-negation": "error",
"no-undef": ["error"],
"no-unused-vars": "off",
"no-unused-expressions": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-console": "off",
"no-multi-spaces": "warn",
"no-use-before-define": [
"off",
{
"functions": false,
"classes": false,
"variables": false
}
],
"no-var": ["off"],
"no-prototype-builtins": ["off"],
"object-curly-spacing": ["error", "always"],
"prefer-const": [
"warn",
{
"destructuring": "all"
}
],
"quotes": ["error", "single", { "allowTemplateLiterals": true }],
"strict": ["error", "global"],
"semi": ["error", "always"],
"spaced-comment": ["warn", "always"],
"sort-keys": ["off"],
"space-before-function-paren": ["off"],
"space-infix-ops": "warn"
},
"env": {
"commonjs": true,
"es6": true,
"node": true
},
"extends": [
"standard",
"eslint:recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended"
],
"globals": {},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module",
"project": "./tsconfig.json" // <-- Point to your project's "tsconfig.json" or create a new one.
},
"plugins": ["deprecation", "@typescript-eslint"]
}