-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
54 lines (52 loc) · 1.86 KB
/
.eslintrc.js
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
module.exports = {
plugins: [
"@typescript-eslint",
],
parser: "@typescript-eslint/parser",
parserOptions: {
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json",
"tsconfigRootDir": "./",
"createDefaultProgram": true
},
extends: [
"plugin:@typescript-eslint/recommended",
],
rules: {
"@typescript-eslint/no-inferrable-types": "off",
"no-debugger": "off",
"no-console": "warn",
"no-multiple-empty-lines": ["error", {max: 1, maxBOF: 0}],
"useTabs": "off",
"no-prototype-builtins": "off",
"max-len": ["warn", {"code": 120, "ignoreStrings": true, "ignoreRegExpLiterals": true}],
"space-before-blocks": ["error", "always"],
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"block-spacing": ["error", "always"],
"no-empty": ["error", {"allowEmptyCatch": true}],
"keyword-spacing": ["error", {
"overrides": {
"if": {"after": false},
"for": {"after": false},
"while": {"after": false},
"catch": {"after": false},
"switch": {"after": false},
}
}],
"padding-line-between-statements": ["error",
{blankLine: "always", prev: "*", next: "return"},
{blankLine: "always", prev: "*", next: "if"},
],
"no-param-reassign": "off",
"no-return-assign": "off",
"no-sequences": "off",
"no-shadow": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-unused-vars": "off"
},
};