eslint-config-conventions 21.0.3 → 21.1.1
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 +18 -3
- package/README.md +2 -2
- package/eslint.config.js +3 -3
- package/package.json +12 -12
package/.oxlintrc.json
CHANGED
|
@@ -126,7 +126,7 @@
|
|
|
126
126
|
],
|
|
127
127
|
"no-regex-spaces": "error",
|
|
128
128
|
"no-shadow-restricted-names": "error",
|
|
129
|
-
"no-throw-literal": "
|
|
129
|
+
"no-throw-literal": "off",
|
|
130
130
|
"no-unused-expressions": [
|
|
131
131
|
"error",
|
|
132
132
|
{
|
|
@@ -164,6 +164,7 @@
|
|
|
164
164
|
"arrow-body-style": ["error", "always"],
|
|
165
165
|
"promise/param-names": "error",
|
|
166
166
|
"promise/no-new-statics": "error",
|
|
167
|
+
"promise/no-multiple-resolved": "error",
|
|
167
168
|
"promise/no-nesting": "error",
|
|
168
169
|
"unicorn/catch-error-name": "error",
|
|
169
170
|
"unicorn/consistent-date-clone": "error",
|
|
@@ -171,6 +172,7 @@
|
|
|
171
172
|
"unicorn/escape-case": "error",
|
|
172
173
|
"unicorn/explicit-length-check": "error",
|
|
173
174
|
"unicorn/new-for-builtins": "error",
|
|
175
|
+
"unicorn/no-array-callback-reference": "error",
|
|
174
176
|
"unicorn/no-array-for-each": "error",
|
|
175
177
|
"unicorn/no-array-method-this-argument": "error",
|
|
176
178
|
"unicorn/no-document-cookie": "error",
|
|
@@ -280,8 +282,7 @@
|
|
|
280
282
|
"builtinGlobals": false
|
|
281
283
|
}
|
|
282
284
|
],
|
|
283
|
-
"
|
|
284
|
-
"@typescript-eslint/only-throw-error": "error",
|
|
285
|
+
"@typescript-eslint/only-throw-error": "off",
|
|
285
286
|
"no-unused-expressions": [
|
|
286
287
|
"error",
|
|
287
288
|
{
|
|
@@ -311,6 +312,7 @@
|
|
|
311
312
|
],
|
|
312
313
|
"@typescript-eslint/no-base-to-string": "error",
|
|
313
314
|
"@typescript-eslint/no-dynamic-delete": "off",
|
|
315
|
+
"@typescript-eslint/no-deprecated": "off",
|
|
314
316
|
"@typescript-eslint/no-extra-non-null-assertion": "error",
|
|
315
317
|
"@typescript-eslint/no-redundant-type-constituents": "error",
|
|
316
318
|
"@typescript-eslint/no-extraneous-class": [
|
|
@@ -349,6 +351,7 @@
|
|
|
349
351
|
"@typescript-eslint/no-array-delete": "error",
|
|
350
352
|
"@typescript-eslint/prefer-as-const": "error",
|
|
351
353
|
"@typescript-eslint/prefer-function-type": "error",
|
|
354
|
+
"@typescript-eslint/prefer-includes": "error",
|
|
352
355
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
353
356
|
"@typescript-eslint/prefer-return-this-type": "error",
|
|
354
357
|
"@typescript-eslint/promise-function-async": "error",
|
|
@@ -371,6 +374,18 @@
|
|
|
371
374
|
{
|
|
372
375
|
"allowNumber": true
|
|
373
376
|
}
|
|
377
|
+
],
|
|
378
|
+
"@typescript-eslint/strict-boolean-expressions": [
|
|
379
|
+
"error",
|
|
380
|
+
{
|
|
381
|
+
"allowString": false,
|
|
382
|
+
"allowNumber": false,
|
|
383
|
+
"allowNullableObject": false,
|
|
384
|
+
"allowNullableBoolean": false,
|
|
385
|
+
"allowNullableString": false,
|
|
386
|
+
"allowNullableNumber": false,
|
|
387
|
+
"allowAny": false
|
|
388
|
+
}
|
|
374
389
|
]
|
|
375
390
|
},
|
|
376
391
|
"plugins": ["typescript"]
|
package/README.md
CHANGED
|
@@ -37,10 +37,10 @@ More information about **formatting rules** vs **code-quality rules** can be fou
|
|
|
37
37
|
npm install --save-dev \
|
|
38
38
|
eslint@^9.22.0 \
|
|
39
39
|
eslint-plugin-promise@^7.2.1 \
|
|
40
|
-
eslint-plugin-unicorn@^
|
|
40
|
+
eslint-plugin-unicorn@^62.0.0 \
|
|
41
41
|
eslint-plugin-import-x@^4.6.1 \
|
|
42
42
|
globals@^16.0.0 \
|
|
43
|
-
typescript@^5.
|
|
43
|
+
typescript@^5.9.3 \
|
|
44
44
|
typescript-eslint@^8.32.0 \
|
|
45
45
|
eslint-config-conventions@latest
|
|
46
46
|
```
|
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.1.1",
|
|
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>",
|
|
@@ -49,7 +49,7 @@
|
|
|
49
49
|
"peerDependencies": {
|
|
50
50
|
"eslint": "^9.22.0",
|
|
51
51
|
"eslint-plugin-promise": "^7.2.1",
|
|
52
|
-
"eslint-plugin-unicorn": "^61.0.0",
|
|
52
|
+
"eslint-plugin-unicorn": "^61.0.0 || ^62.0.0",
|
|
53
53
|
"eslint-plugin-import-x": "^4.6.1",
|
|
54
54
|
"globals": "^16.0.0",
|
|
55
55
|
"typescript-eslint": "^8.32.0"
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@types/node": "24.
|
|
79
|
-
"globals": "16.
|
|
80
|
-
"editorconfig-checker": "6.1.
|
|
81
|
-
"oxlint": "1.
|
|
82
|
-
"@oxlint/migrate": "1.
|
|
83
|
-
"eslint": "9.
|
|
78
|
+
"@types/node": "24.10.1",
|
|
79
|
+
"globals": "16.5.0",
|
|
80
|
+
"editorconfig-checker": "6.1.1",
|
|
81
|
+
"oxlint": "1.30.0",
|
|
82
|
+
"@oxlint/migrate": "1.30.0",
|
|
83
|
+
"eslint": "9.39.1",
|
|
84
84
|
"eslint-plugin-promise": "7.2.1",
|
|
85
|
-
"eslint-plugin-unicorn": "
|
|
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": "
|
|
87
|
+
"typescript-eslint": "8.48.0",
|
|
88
|
+
"prettier": "3.7.0",
|
|
89
|
+
"semantic-release": "25.0.2",
|
|
90
90
|
"typescript": "5.9.3"
|
|
91
91
|
}
|
|
92
92
|
}
|