-
Notifications
You must be signed in to change notification settings - Fork 4
/
.eslintrc.js
61 lines (61 loc) · 1.35 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
55
56
57
58
59
60
61
module.exports = {
env: {
browser: false,
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
],
parser: "@typescript-eslint/parser",
plugins: ["@typescript-eslint"],
rules: {
"arrow-parens": 0,
"no-debugger": 1,
"no-warning-comments": [
1,
{
terms: ["hardcoded"],
location: "anywhere",
},
],
"no-return-await": 1,
"object-curly-spacing": ["error", "always"],
"no-var": "error",
"comma-dangle": [1, "always-multiline"],
"linebreak-style": ["error", "unix"],
"generator-star-spacing": 0,
"no-tabs": 2,
"max-len": [
1,
{
code: 120,
comments: 120,
ignoreUrls: true,
ignoreStrings: true,
ignoreTemplateLiterals: true,
ignoreRegExpLiterals: true,
},
],
"no-console": [
1,
{
allow: ["warn", "error"],
},
],
"no-multiple-empty-lines": [2, { max: 1, maxEOF: 0, maxBOF: 0 }],
"import/no-named-as-default-member": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-explicit-any": "off",
},
settings: {
"import/resolver": {
"typescript": {
"project": "./tsconfig.json",
},
},
},
};