eslint-config-conventions 21.1.1 → 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 +12 -0
- package/README.md +1 -1
- package/package.json +9 -9
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
|
{
|
|
@@ -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
|
{
|
|
@@ -352,6 +356,14 @@
|
|
|
352
356
|
"@typescript-eslint/prefer-as-const": "error",
|
|
353
357
|
"@typescript-eslint/prefer-function-type": "error",
|
|
354
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
|
+
],
|
|
355
367
|
"@typescript-eslint/prefer-reduce-type-parameter": "error",
|
|
356
368
|
"@typescript-eslint/prefer-return-this-type": "error",
|
|
357
369
|
"@typescript-eslint/promise-function-async": "error",
|
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/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,17 +75,17 @@
|
|
|
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.39.
|
|
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.7.
|
|
87
|
+
"typescript-eslint": "8.53.0",
|
|
88
|
+
"prettier": "3.7.4",
|
|
89
89
|
"semantic-release": "25.0.2",
|
|
90
90
|
"typescript": "5.9.3"
|
|
91
91
|
}
|