-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
executable file
·128 lines (127 loc) · 3.63 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
const production = process.env.NODE_ENV === "production";
const devRules = production ? { "no-console": "warn" } : { "no-console": 0 };
module.exports = {
"parser" : "@typescript-eslint/parser",
"parserOptions" : { "project": "./tsconfig.json" },
"plugins" : [
"import"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
"overrides": [
{
"files" : "*.{test,spec}.{tsx,ts}",
"rules" : {
"@typescript-eslint/no-explicit-any" : 0,
"@typescript-eslint/no-unused-vars" : 0,
"import/no-extraneous-dependencies" : 0
}
},
{
"files" : "webpack.*.{js,ts}",
"rules" : {
"@typescript-eslint/no-var-requires" : 0,
"import/no-extraneous-dependencies" : 0,
"require-jsdoc" : 0
}
}
],
"root" : true,
"rules" : {
"no-throw-literal" : 0,
"func-names" : 0,
"import/no-cycle" : 0,
"@typescript-eslint/require-await" : 0,
"@typescript-eslint/no-unsafe-return" : 0,
"@typescript-eslint/explicit-module-boundary-types" : 0,
"@typescript-eslint/no-unsafe-member-access" : 0,
"@typescript-eslint/no-unsafe-call" : 0,
"@typescript-eslint/no-unsafe-assignment" : 0,
"@typescript-eslint/ban-ts-comment" : 0,
"@typescript-eslint/camelcase" : 0,
"@typescript-eslint/indent" : 0,
"@typescript-eslint/no-explicit-any" : 0,
"@typescript-eslint/no-object-literal-type-assertion" : 0,
"@typescript-eslint/no-this-alias" : 0,
"camelcase" : 0,
"comma-dangle" : 2,
"comma-spacing" : [
"error",
{
"after" : true,
"before" : false
}
],
"import/extensions" : 0,
"import/no-named-as-default" : 0,
"import/no-unresolved" : 0,
"indent" : [
"error",
2
],
"key-spacing": [
"error",
{
"align": {
"afterColon" : true,
"beforeColon" : true,
"on" : "colon"
}
}
],
"linebreak-style" : "error",
"lines-between-class-members" : 0,
"max-len" : [
"error",
{ "code": 160 }
],
"no-multi-spaces" : 2,
"no-multiple-empty-lines" : [
"error",
{
"max" : 1,
"maxEOF" : 0
}
],
"no-param-reassign" : 0,
"no-trailing-spaces" : "error",
"no-underscore-dangle" : 0,
"no-unused-vars" : 0,
"object-curly-newline" : [
"error",
{ "multiline": true }
],
"object-curly-spacing": [
"error",
"always"
],
"quotes": [
"error",
"double"
],
"require-jsdoc": [
"error",
{
"require": {
"ArrowFunctionExpression" : false,
"ClassDeclaration" : true,
"FunctionDeclaration" : false,
"FunctionExpression" : false,
"MethodDefinition" : false
}
}
],
"semi" : "error",
"space-before-blocks" : [
"error",
{
"classes" : "never",
"functions" : "always",
"keywords" : "always"
}
],
...devRules
}
};