-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
45 lines (40 loc) · 1.4 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
module.exports = {
root: true,
plugins: [
"@typescript-eslint"
],
parserOptions: {
parser: "@typescript-eslint/parser",
project: "./tsconfig.json",
sourceType: "module",
ecmaVersion: 2020
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
env: {
node: true
},
rules: {
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
"indent": ["error", 4],
"quotes": [2, "double", { "avoidEscape": true }],
"space-before-function-paren": [2, "never"],
"comma-dangle": ["error", "never"],
"semi": ["error", "always"],
"@typescript-eslint/no-unsafe-member-access": 0,
"@typescript-eslint/no-unsafe-assignment": 0,
"@typescript-eslint/restrict-template-expressions": 0,
"@typescript-eslint/explicit-module-boundary-types": 0,
"eol-last": ["error", "always"],
"no-multiple-empty-lines": ["error", {"max": 1, "maxEOF": 1}],
"no-unused-vars": 0,
"@typescript-eslint/no-unsafe-call": 0,
"@typescript-eslint/no-unsafe-return": 0,
"@typescript-eslint/no-misused-promises": 0,
"@typescript-eslint/unbound-method": 0,
"no-case-declarations": 0
}
};