eslint-config-conventions 21.1.0 → 21.2.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/.oxlintrc.json +28 -3
- package/README.md +1 -1
- package/eslint.config.js +3 -3
- package/package.json +10 -10
package/.oxlintrc.json
CHANGED
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
},
|
|
15
15
|
"rules": {
|
|
16
16
|
"no-await-in-loop": "off",
|
|
17
|
+
"constructor-super": "error",
|
|
17
18
|
"for-direction": "error",
|
|
18
19
|
"no-async-promise-executor": "error",
|
|
19
20
|
"no-class-assign": "error",
|
|
@@ -41,6 +42,7 @@
|
|
|
41
42
|
"no-loss-of-precision": "error",
|
|
42
43
|
"no-new-native-nonconstructor": "error",
|
|
43
44
|
"no-obj-calls": "error",
|
|
45
|
+
"no-promise-executor-return": "error",
|
|
44
46
|
"no-prototype-builtins": "error",
|
|
45
47
|
"no-self-assign": "error",
|
|
46
48
|
"no-self-compare": "error",
|
|
@@ -99,6 +101,7 @@
|
|
|
99
101
|
"no-array-constructor": "error",
|
|
100
102
|
"no-caller": "error",
|
|
101
103
|
"no-delete-var": "error",
|
|
104
|
+
"no-implicit-coercion": "error",
|
|
102
105
|
"no-extra-boolean-cast": [
|
|
103
106
|
"error",
|
|
104
107
|
{
|
|
@@ -126,7 +129,7 @@
|
|
|
126
129
|
],
|
|
127
130
|
"no-regex-spaces": "error",
|
|
128
131
|
"no-shadow-restricted-names": "error",
|
|
129
|
-
"no-throw-literal": "
|
|
132
|
+
"no-throw-literal": "off",
|
|
130
133
|
"no-unused-expressions": [
|
|
131
134
|
"error",
|
|
132
135
|
{
|
|
@@ -141,6 +144,7 @@
|
|
|
141
144
|
"no-useless-constructor": "error",
|
|
142
145
|
"no-useless-escape": "error",
|
|
143
146
|
"no-useless-rename": "error",
|
|
147
|
+
"no-useless-return": "error",
|
|
144
148
|
"no-else-return": [
|
|
145
149
|
"error",
|
|
146
150
|
{
|
|
@@ -282,8 +286,7 @@
|
|
|
282
286
|
"builtinGlobals": false
|
|
283
287
|
}
|
|
284
288
|
],
|
|
285
|
-
"
|
|
286
|
-
"@typescript-eslint/only-throw-error": "error",
|
|
289
|
+
"@typescript-eslint/only-throw-error": "off",
|
|
287
290
|
"no-unused-expressions": [
|
|
288
291
|
"error",
|
|
289
292
|
{
|
|
@@ -313,6 +316,7 @@
|
|
|
313
316
|
],
|
|
314
317
|
"@typescript-eslint/no-base-to-string": "error",
|
|
315
318
|
"@typescript-eslint/no-dynamic-delete": "off",
|
|
319
|
+
"@typescript-eslint/no-deprecated": "off",
|
|
316
320
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
317
321
|
"@typescript-eslint/no-redundant-type-constituents": "error",
|
|
318
322
|
"@typescript-eslint/no-extraneous-class": [
|
|
@@ -351,6 +355,15 @@
|
|
|
351
355
|
"@typescript-eslint/no-array-delete": "error",
|
|
352
356
|
"@typescript-eslint/prefer-as-const": "error",
|
|
353
357
|
"@typescript-eslint/prefer-function-type": "error",
|
|
358
|
+
"@typescript-eslint/prefer-includes": "error",
|
|
359
|
+
"@typescript-eslint/prefer-nullish-coalescing": [
|
|
360
|
+
"error",
|
|
361
|
+
{
|
|
362
|
+
"ignoreTernaryTests": true,
|
|
363
|
+
"ignoreConditionalTests": false,
|
|
364
|
+
"ignoreMixedLogicalExpressions": false
|
|
365
|
+
}
|
|
366
|
+
],
|
|
354
367
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
355
368
|
"@typescript-eslint/prefer-return-this-type": "error",
|
|
356
369
|
"@typescript-eslint/promise-function-async": "error",
|
|
@@ -373,6 +386,18 @@
|
|
|
373
386
|
{
|
|
374
387
|
"allowNumber": true
|
|
375
388
|
}
|
|
389
|
+
],
|
|
390
|
+
"@typescript-eslint/strict-boolean-expressions": [
|
|
391
|
+
"error",
|
|
392
|
+
{
|
|
393
|
+
"allowString": false,
|
|
394
|
+
"allowNumber": false,
|
|
395
|
+
"allowNullableObject": false,
|
|
396
|
+
"allowNullableBoolean": false,
|
|
397
|
+
"allowNullableString": false,
|
|
398
|
+
"allowNullableNumber": false,
|
|
399
|
+
"allowAny": false
|
|
400
|
+
}
|
|
376
401
|
]
|
|
377
402
|
},
|
|
378
403
|
"plugins": ["typescript"]
|
package/README.md
CHANGED
|
@@ -39,7 +39,7 @@ npm install --save-dev \
|
|
|
39
39
|
eslint-plugin-promise@^7.2.1 \
|
|
40
40
|
eslint-plugin-unicorn@^62.0.0 \
|
|
41
41
|
eslint-plugin-import-x@^4.6.1 \
|
|
42
|
-
globals@^
|
|
42
|
+
globals@^17.0.0 \
|
|
43
43
|
typescript@^5.9.3 \
|
|
44
44
|
typescript-eslint@^8.32.0 \
|
|
45
45
|
eslint-config-conventions@latest
|
package/eslint.config.js
CHANGED
|
@@ -159,7 +159,7 @@ export default defineConfig(
|
|
|
159
159
|
],
|
|
160
160
|
"no-regex-spaces": "error",
|
|
161
161
|
"no-shadow-restricted-names": "error",
|
|
162
|
-
"no-throw-literal": "
|
|
162
|
+
"no-throw-literal": "off",
|
|
163
163
|
"no-undef-init": "error",
|
|
164
164
|
"no-unused-expressions": [
|
|
165
165
|
"error",
|
|
@@ -335,7 +335,7 @@ export default defineConfig(
|
|
|
335
335
|
],
|
|
336
336
|
|
|
337
337
|
"no-throw-literal": "off",
|
|
338
|
-
"@typescript-eslint/only-throw-error": "
|
|
338
|
+
"@typescript-eslint/only-throw-error": "off",
|
|
339
339
|
|
|
340
340
|
"no-unused-expressions": "off",
|
|
341
341
|
"@typescript-eslint/no-unused-expressions": [
|
|
@@ -386,7 +386,7 @@ export default defineConfig(
|
|
|
386
386
|
"@typescript-eslint/no-base-to-string": "error",
|
|
387
387
|
"@typescript-eslint/no-deprecated": "error",
|
|
388
388
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
389
|
-
"@typescript-eslint/no-redundant-type-constituents": "
|
|
389
|
+
"@typescript-eslint/no-redundant-type-constituents": "off",
|
|
390
390
|
|
|
391
391
|
"@typescript-eslint/no-extraneous-class": [
|
|
392
392
|
"error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-conventions",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.2.0",
|
|
4
4
|
"public": true,
|
|
5
5
|
"description": "ESLint shareable config to enforce strict conventions and good code quality.",
|
|
6
6
|
"author": "Théo LUDWIG <contact@theoludwig.fr>",
|
|
@@ -51,7 +51,7 @@
|
|
|
51
51
|
"eslint-plugin-promise": "^7.2.1",
|
|
52
52
|
"eslint-plugin-unicorn": "^61.0.0 || ^62.0.0",
|
|
53
53
|
"eslint-plugin-import-x": "^4.6.1",
|
|
54
|
-
"globals": "^16.0.0",
|
|
54
|
+
"globals": "^16.0.0 || ^17.0.0",
|
|
55
55
|
"typescript-eslint": "^8.32.0"
|
|
56
56
|
},
|
|
57
57
|
"peerDependenciesMeta": {
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@types/node": "
|
|
79
|
-
"globals": "
|
|
78
|
+
"@types/node": "25.0.8",
|
|
79
|
+
"globals": "17.0.0",
|
|
80
80
|
"editorconfig-checker": "6.1.1",
|
|
81
|
-
"oxlint": "1.
|
|
82
|
-
"@oxlint/migrate": "1.
|
|
83
|
-
"eslint": "9.
|
|
81
|
+
"oxlint": "1.39.0",
|
|
82
|
+
"@oxlint/migrate": "1.39.0",
|
|
83
|
+
"eslint": "9.39.2",
|
|
84
84
|
"eslint-plugin-promise": "7.2.1",
|
|
85
85
|
"eslint-plugin-unicorn": "62.0.0",
|
|
86
86
|
"eslint-plugin-import-x": "4.16.1",
|
|
87
|
-
"typescript-eslint": "8.
|
|
88
|
-
"prettier": "3.
|
|
89
|
-
"semantic-release": "25.0.
|
|
87
|
+
"typescript-eslint": "8.53.0",
|
|
88
|
+
"prettier": "3.7.4",
|
|
89
|
+
"semantic-release": "25.0.2",
|
|
90
90
|
"typescript": "5.9.3"
|
|
91
91
|
}
|
|
92
92
|
}
|