-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
91 lines (91 loc) · 2.42 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
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
module.exports = {
env: {
browser: true,
es6: true,
node: true,
},
extends: [
"eslint:recommended",
"plugin:@typescript-eslint/recommended",
"prettier"
],
parser: "@typescript-eslint/parser",
parserOptions: {
ecmaVersion: 12
},
plugins: [
"@typescript-eslint"
],
rules: {
indent: [
"error",
4,
{
SwitchCase: 1,
ignoredNodes: ["ConditionalExpression"],
},
],
"linebreak-style": "off",
quotes: [
"error",
"double",
{ allowTemplateLiterals: true }
],
semi: [
"error",
"always"
],
radix: [
"error",
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-this-alias": "off",
"no-unused-labels": "error",
"no-underscore-dangle": "off",
"no-trailing-spaces": "error",
"no-redeclare": "off",
"no-new-wrappers": "error",
"no-debugger": "error",
"no-eval": "error",
"no-multiple-empty-lines": [
"error",
{
"max": 2
}
],
"no-caller": "error",
"eol-last": "error",
"eqeqeq": [
"error",
"smart"
],
"guard-for-in": "error",
"id-denylist": "off",
"id-match": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-unused-vars": "off",
"no-empty-pattern": "off",
"no-empty": "off",
"no-case-declarations": "off",
"no-cond-assign": "off",
"no-sparse-arrays": "off",
"prefer-const": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/ban-types" : "off",
"@typescript-eslint/triple-slash-reference": "off",
"@typescript-eslint/ban-ts-comment": "off",
"no-constant-condition": "off",
"no-mixed-spaces-and-tabs" : "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ argsIgnorePattern: "^_" }
],
},
ignorePatterns: [
"build",
"node_modules"
],
};