-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
190 lines (188 loc) · 4.95 KB
/
.eslintrc.json
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
{
"extends": [
"airbnb-base",
"plugin:@typescript-eslint/recommended",
"plugin:jsdoc/recommended",
"plugin:n/recommended",
"plugin:unicorn/recommended"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"impliedStrict": true
},
"ecmaVersion": 2020,
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"@typescript-eslint",
"jsdoc",
"unicorn"
],
"root": true,
"rules": {
"object-curly-newline": ["error", {
"ObjectExpression": { "multiline": true, "consistent": true },
"ObjectPattern": { "multiline": true, "consistent": true },
"ImportDeclaration": { "multiline": true, "consistent": true },
"ExportDeclaration": { "multiline": true, "consistent": true }
}],
"no-param-reassign": 0,
"no-continue": 0,
"no-restricted-syntax": 0,
"require-await": 0,
"no-return-await": 0,
"eslint-comments/no-use": 0,
"filenames/match-regex": 0,
"prettier/prettier": 0,
"i18n-text/no-en": 0,
"import/no-namespace": 0,
"no-unused-vars": 0,
"import/namespace": 0,
"no-constructor-return": 0,
"default-case-last": 0,
"no-undef": 0,
"import/named": 0,
"no-empty": ["error", {"allowEmptyCatch": true}],
"no-promise-executor-return": 0,
"@typescript-eslint/ban-ts-comment": ["warn", {
"ts-ignore": "allow-with-description"
}],
"@typescript-eslint/explicit-module-boundary-types": 0,
"@typescript-eslint/require-await": "error",
"no-void": "off",
"@typescript-eslint/no-floating-promises": "error",
"@typescript-eslint/return-await": ["error", "always"],
"import/no-unresolved": "off",
"import/extensions": ["error", "always", {
"js": "always",
"mjs": "never"
}],
"import/no-useless-path-segments": ["error", {
"noUselessIndex": false
}],
"import/order": ["error", {
"alphabetize": {
"caseInsensitive": false,
"order": "asc"
},
"groups": [
"builtin",
"external",
"parent",
"sibling",
"index"
],
"newlines-between": "always",
"pathGroups": [{
"group": "external",
"pattern": "@dataprocs/**",
"position": "after"
}],
"pathGroupsExcludedImportTypes": ["builtin"]
}],
"import/prefer-default-export": 0,
"unicorn/switch-case-braces": 0,
"unicorn/no-useless-undefined": 0,
"unicorn/no-array-for-each": 0,
"unicorn/prefer-spread": 0,
"unicorn/no-null": 0,
"unicorn/filename-case": 0,
"unicorn/prefer-dom-node-append": 0,
"unicorn/prevent-abbreviations": 0,
"unicorn/explicit-length-check": 0,
"unicorn/catch-error-name": 0,
"unicorn/prefer-dom-node-dataset": 0,
"unicorn/no-array-reduce": 0,
"unicorn/no-this-assignment": 0,
"unicorn/prefer-ternary": ["error", "only-single-line"],
"unicorn/no-empty-file": 0,
"unicorn/prefer-query-selector": 0,
"unicorn/prefer-dom-node-remove": 0,
"unicorn/no-for-loop": 0,
"jsdoc/newline-after-description": [
"warn",
"never"
],
"jsdoc/no-undefined-types": 0,
"jsdoc/require-param-description": 0,
"jsdoc/require-property-description": 0,
"jsdoc/require-returns": 0,
"jsdoc/require-returns-description": 0,
"jsdoc/valid-types": 0,
"max-len": ["error", 120, 2, {
"ignoreComments": true,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreUrls": true
}],
"consistent-return": "warn",
"no-console": ["error", {
"allow": [
"warn",
"error",
"time",
"timeEnd"
]
}],
"no-plusplus": ["off"],
"node/no-unsupported-features/es-syntax": ["off", {
"ignores": [],
"version": ">=14.0.0"
}],
"prefer-destructuring": ["error", {
"AssignmentExpression": {
"array": false,
"object": false
},
"VariableDeclarator": {
"array": false,
"object": true
}
}, {
"enforceForRenamedProperties": false
}],
"sort-imports": ["error", {
"ignoreDeclarationSort": true
}],
"spaced-comment": ["error", "always", {
"block": {
"balanced": true,
"exceptions": ["-", "+"],
"markers": ["=", "!", ":", "::"]
},
"line": {
"exceptions": ["-", "+"],
"markers": ["=", "!", "/"]
}
}]
},
"settings": {
"jsdoc": {
"preferredTypes": {
"array": "Array",
"object": "Object",
"object.": "Object<>",
"object<>": "Object<>",
"symbol": "Symbol"
},
"tagNamePreference": {
"augment": "extends",
"constant": "const",
"property": "prop",
"returns": "return"
}
}
},
"overrides": [
{
"files": [ "*.cjs"],
"rules": {
"import/no-nodejs-modules": 0,
"@typescript-eslint/no-var-requires": 0
}
}
]
}