eslint-config-deepcrawl 5.9.0 → 7.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -12
- package/index.js +15 -4
- package/package.json +12 -12
package/README.md
CHANGED
|
@@ -9,18 +9,7 @@ Add `eslint-config-deepcrawl` and its peer dependencies to your `package.json`:
|
|
|
9
9
|
```shell
|
|
10
10
|
yarn add --dev \
|
|
11
11
|
eslint-config-deepcrawl \
|
|
12
|
-
|
|
13
|
-
eslint@^7.14.0 \
|
|
14
|
-
eslint-plugin-array-func@^3.1.7 \
|
|
15
|
-
eslint-plugin-clean-code@^0.1.12 \
|
|
16
|
-
eslint-plugin-filenames@^1.3.2 \
|
|
17
|
-
eslint-plugin-import@^2.22.1 \
|
|
18
|
-
eslint-plugin-jest@^24.1.3 \
|
|
19
|
-
eslint-plugin-json-format@^2.0.1 \
|
|
20
|
-
eslint-plugin-no-loops@^0.3.0 \
|
|
21
|
-
eslint-plugin-node@^11.1.0 \
|
|
22
|
-
eslint-plugin-promise@^4.2.1 \
|
|
23
|
-
eslint-plugin-sonarjs@^0.5.0
|
|
12
|
+
eslint@^8.15.0
|
|
24
13
|
```
|
|
25
14
|
|
|
26
15
|
## Usage
|
package/index.js
CHANGED
|
@@ -9,7 +9,7 @@ module.exports = {
|
|
|
9
9
|
"plugin:eslint-plugin-promise/recommended",
|
|
10
10
|
"plugin:node/recommended",
|
|
11
11
|
"eslint-config-prettier",
|
|
12
|
-
"prettier
|
|
12
|
+
"prettier",
|
|
13
13
|
],
|
|
14
14
|
parser: "@typescript-eslint/parser",
|
|
15
15
|
plugins: [
|
|
@@ -23,6 +23,7 @@ module.exports = {
|
|
|
23
23
|
"eslint-plugin-promise",
|
|
24
24
|
"eslint-plugin-sonarjs",
|
|
25
25
|
],
|
|
26
|
+
reportUnusedDisableDirectives: true,
|
|
26
27
|
rules: {
|
|
27
28
|
"@typescript-eslint/array-type": [
|
|
28
29
|
"error",
|
|
@@ -51,7 +52,10 @@ module.exports = {
|
|
|
51
52
|
message: "Use symbol instead",
|
|
52
53
|
fixWith: "symbol",
|
|
53
54
|
},
|
|
54
|
-
|
|
55
|
+
BigInt: {
|
|
56
|
+
message: "Use bigint instead",
|
|
57
|
+
fixWith: "bigint",
|
|
58
|
+
},
|
|
55
59
|
// object typing
|
|
56
60
|
Object: {
|
|
57
61
|
message: [
|
|
@@ -183,6 +187,7 @@ module.exports = {
|
|
|
183
187
|
ignoreNumericLiteralTypes: true,
|
|
184
188
|
},
|
|
185
189
|
],
|
|
190
|
+
"@typescript-eslint/no-non-null-asserted-nullish-coalescing": "error",
|
|
186
191
|
"@typescript-eslint/no-non-null-assertion": "error",
|
|
187
192
|
"@typescript-eslint/no-this-alias": [
|
|
188
193
|
"error",
|
|
@@ -192,6 +197,7 @@ module.exports = {
|
|
|
192
197
|
],
|
|
193
198
|
"@typescript-eslint/no-unnecessary-type-arguments": "error",
|
|
194
199
|
"@typescript-eslint/no-unsafe-assignment": "off",
|
|
200
|
+
"@typescript-eslint/no-unsafe-argument": "off",
|
|
195
201
|
"@typescript-eslint/no-unsafe-call": "off",
|
|
196
202
|
"@typescript-eslint/no-unsafe-member-access": "off",
|
|
197
203
|
"@typescript-eslint/no-unsafe-return": "off",
|
|
@@ -199,6 +205,7 @@ module.exports = {
|
|
|
199
205
|
"error",
|
|
200
206
|
{
|
|
201
207
|
argsIgnorePattern: "^_",
|
|
208
|
+
destructuredArrayIgnorePattern: "^_",
|
|
202
209
|
},
|
|
203
210
|
],
|
|
204
211
|
"@typescript-eslint/no-useless-constructor": "error",
|
|
@@ -207,10 +214,12 @@ module.exports = {
|
|
|
207
214
|
"@typescript-eslint/prefer-includes": "error",
|
|
208
215
|
"@typescript-eslint/prefer-nullish-coalescing": "error",
|
|
209
216
|
"@typescript-eslint/prefer-optional-chain": "error",
|
|
217
|
+
"@typescript-eslint/prefer-regexp-exec": "error",
|
|
210
218
|
"@typescript-eslint/prefer-string-starts-ends-with": "error",
|
|
211
219
|
"@typescript-eslint/require-array-sort-compare": "error",
|
|
212
220
|
"@typescript-eslint/restrict-template-expressions": "off",
|
|
213
221
|
"@typescript-eslint/return-await": "error",
|
|
222
|
+
"@typescript-eslint/sort-type-union-intersection-members": "error",
|
|
214
223
|
"@typescript-eslint/unified-signatures": "error",
|
|
215
224
|
"array-func/avoid-reverse": "error",
|
|
216
225
|
"clean-code/feature-envy": "error",
|
|
@@ -222,7 +231,7 @@ module.exports = {
|
|
|
222
231
|
"import/no-default-export": "error",
|
|
223
232
|
"import/no-named-as-default": "off",
|
|
224
233
|
"import/no-named-as-default-member": "off",
|
|
225
|
-
"import/no-relative-
|
|
234
|
+
"import/no-relative-packages": "error",
|
|
226
235
|
"import/no-unresolved": "off",
|
|
227
236
|
"import/order": [
|
|
228
237
|
"error",
|
|
@@ -236,6 +245,8 @@ module.exports = {
|
|
|
236
245
|
},
|
|
237
246
|
],
|
|
238
247
|
"jest/expect-expect": "error",
|
|
248
|
+
"jest/prefer-expect-resolves": "error",
|
|
249
|
+
"jest/prefer-to-be": "error",
|
|
239
250
|
"no-loops/no-loops": "error",
|
|
240
251
|
"node/no-missing-import": "off",
|
|
241
252
|
"node/no-unsupported-features/es-syntax": [
|
|
@@ -280,7 +291,7 @@ module.exports = {
|
|
|
280
291
|
}
|
|
281
292
|
],
|
|
282
293
|
"max-lines-per-function": [
|
|
283
|
-
"
|
|
294
|
+
"warn",
|
|
284
295
|
{
|
|
285
296
|
max: 20,
|
|
286
297
|
skipBlankLines: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-deepcrawl",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "7.0.0",
|
|
4
4
|
"description": "ESLint rules recommended by DeepCrawl.",
|
|
5
5
|
"homepage": "https://github.com/deepcrawl/eslint-config",
|
|
6
6
|
"bugs": {
|
|
@@ -21,22 +21,22 @@
|
|
|
21
21
|
},
|
|
22
22
|
"scripts": {},
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@typescript-eslint/
|
|
25
|
-
"eslint
|
|
26
|
-
|
|
27
|
-
"peerDependencies": {
|
|
28
|
-
"@typescript-eslint/eslint-plugin": "^4.8.2",
|
|
29
|
-
"eslint": ">=7.14.0",
|
|
24
|
+
"@typescript-eslint/eslint-plugin": "^5.25.0",
|
|
25
|
+
"@typescript-eslint/parser": "^5.25.0",
|
|
26
|
+
"eslint-config-prettier": "^8.5.0",
|
|
30
27
|
"eslint-plugin-array-func": "^3.1.7",
|
|
31
28
|
"eslint-plugin-clean-code": "^0.1.12",
|
|
32
29
|
"eslint-plugin-filenames": "^1.3.2",
|
|
33
|
-
"eslint-plugin-import": "^2.
|
|
34
|
-
"eslint-plugin-jest": "^
|
|
30
|
+
"eslint-plugin-import": "^2.26.0",
|
|
31
|
+
"eslint-plugin-jest": "^26.2.2",
|
|
35
32
|
"eslint-plugin-json-format": "^2.0.1",
|
|
36
33
|
"eslint-plugin-no-loops": "^0.3.0",
|
|
37
34
|
"eslint-plugin-node": "^11.1.0",
|
|
38
|
-
"eslint-plugin-promise": "^
|
|
39
|
-
"eslint-plugin-sonarjs": "^0.
|
|
40
|
-
|
|
35
|
+
"eslint-plugin-promise": "^6.0.0",
|
|
36
|
+
"eslint-plugin-sonarjs": "^0.13.0"
|
|
37
|
+
},
|
|
38
|
+
"peerDependencies": {
|
|
39
|
+
"eslint": ">=8.15.0",
|
|
40
|
+
"typescript": ">=4.4"
|
|
41
41
|
}
|
|
42
42
|
}
|