eslint-config-conventions 21.2.4 → 21.3.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 +36 -34
- package/README.md +7 -1
- package/package.json +11 -11
package/.oxlintrc.json
CHANGED
|
@@ -33,6 +33,9 @@
|
|
|
33
33
|
"require-await": "off",
|
|
34
34
|
"no-lonely-if": "off",
|
|
35
35
|
"array-callback-return": "off",
|
|
36
|
+
"no-shadow": "off",
|
|
37
|
+
"no-throw-literal": "off",
|
|
38
|
+
"consistent-return": "off",
|
|
36
39
|
|
|
37
40
|
"getter-return": "error",
|
|
38
41
|
"no-undef": "error",
|
|
@@ -85,8 +88,6 @@
|
|
|
85
88
|
"no-new-func": "error",
|
|
86
89
|
"no-proto": "error",
|
|
87
90
|
"no-regex-spaces": "error",
|
|
88
|
-
"no-shadow": "off",
|
|
89
|
-
"no-throw-literal": "off",
|
|
90
91
|
"no-useless-computed-key": "error",
|
|
91
92
|
"no-else-return": [
|
|
92
93
|
"error",
|
|
@@ -112,6 +113,7 @@
|
|
|
112
113
|
"curly": "error",
|
|
113
114
|
"func-style": "error",
|
|
114
115
|
"arrow-body-style": ["error", "always"],
|
|
116
|
+
"object-shorthand": ["error", "properties"],
|
|
115
117
|
|
|
116
118
|
"promise/param-names": "error",
|
|
117
119
|
"promise/no-nesting": "error",
|
|
@@ -162,17 +164,17 @@
|
|
|
162
164
|
"import/no-named-as-default-member": "off",
|
|
163
165
|
"import/max-dependencies": "off",
|
|
164
166
|
|
|
165
|
-
"
|
|
166
|
-
"
|
|
167
|
-
"
|
|
168
|
-
"
|
|
169
|
-
"
|
|
170
|
-
"
|
|
171
|
-
"
|
|
172
|
-
"
|
|
173
|
-
"
|
|
174
|
-
"
|
|
175
|
-
"
|
|
167
|
+
"typescript/ban-types": "off",
|
|
168
|
+
"typescript/no-unnecessary-type-arguments": "off",
|
|
169
|
+
"typescript/no-unsafe-type-assertion": "off",
|
|
170
|
+
"typescript/no-unsafe-member-access": "off",
|
|
171
|
+
"typescript/no-confusing-void-expression": "off",
|
|
172
|
+
"typescript/no-unsafe-assignment": "off",
|
|
173
|
+
"typescript/no-misused-promises": "off",
|
|
174
|
+
"typescript/return-await": ["error", "always"],
|
|
175
|
+
"typescript/require-await": "off",
|
|
176
|
+
"typescript/switch-exhaustiveness-check": "off",
|
|
177
|
+
"typescript/ban-ts-comment": "off",
|
|
176
178
|
"no-unused-vars": [
|
|
177
179
|
"error",
|
|
178
180
|
{
|
|
@@ -201,7 +203,7 @@
|
|
|
201
203
|
"builtinGlobals": false
|
|
202
204
|
}
|
|
203
205
|
],
|
|
204
|
-
"
|
|
206
|
+
"typescript/only-throw-error": "off",
|
|
205
207
|
"no-unused-expressions": [
|
|
206
208
|
"error",
|
|
207
209
|
{
|
|
@@ -210,10 +212,10 @@
|
|
|
210
212
|
"allowTaggedTemplates": true
|
|
211
213
|
}
|
|
212
214
|
],
|
|
213
|
-
"
|
|
214
|
-
"
|
|
215
|
-
"
|
|
216
|
-
"
|
|
215
|
+
"typescript/adjacent-overload-signatures": "error",
|
|
216
|
+
"typescript/consistent-type-definitions": "error",
|
|
217
|
+
"typescript/consistent-type-imports": "error",
|
|
218
|
+
"typescript/explicit-function-return-type": [
|
|
217
219
|
"error",
|
|
218
220
|
{
|
|
219
221
|
"allowExpressions": true,
|
|
@@ -222,13 +224,13 @@
|
|
|
222
224
|
"allowDirectConstAssertionInArrowFunctions": true
|
|
223
225
|
}
|
|
224
226
|
],
|
|
225
|
-
"
|
|
227
|
+
"typescript/no-extraneous-class": [
|
|
226
228
|
"error",
|
|
227
229
|
{
|
|
228
230
|
"allowWithDecorator": true
|
|
229
231
|
}
|
|
230
232
|
],
|
|
231
|
-
"
|
|
233
|
+
"typescript/no-floating-promises": [
|
|
232
234
|
"error",
|
|
233
235
|
{
|
|
234
236
|
"allowForKnownSafeCalls": [
|
|
@@ -240,25 +242,25 @@
|
|
|
240
242
|
]
|
|
241
243
|
}
|
|
242
244
|
],
|
|
243
|
-
"
|
|
244
|
-
"
|
|
245
|
-
"
|
|
246
|
-
"
|
|
247
|
-
"
|
|
248
|
-
"
|
|
249
|
-
"
|
|
250
|
-
"
|
|
251
|
-
"
|
|
252
|
-
"
|
|
253
|
-
"
|
|
254
|
-
"
|
|
245
|
+
"typescript/no-non-null-assertion": "error",
|
|
246
|
+
"typescript/no-this-alias": "error",
|
|
247
|
+
"typescript/no-require-imports": "error",
|
|
248
|
+
"typescript/prefer-function-type": "error",
|
|
249
|
+
"typescript/prefer-find": "error",
|
|
250
|
+
"typescript/prefer-nullish-coalescing": "off",
|
|
251
|
+
"typescript/prefer-readonly": "error",
|
|
252
|
+
"typescript/prefer-reduce-type-parameter": "error",
|
|
253
|
+
"typescript/prefer-return-this-type": "error",
|
|
254
|
+
"typescript/promise-function-async": "error",
|
|
255
|
+
"typescript/require-array-sort-compare": "error",
|
|
256
|
+
"typescript/restrict-plus-operands": [
|
|
255
257
|
"error",
|
|
256
258
|
{
|
|
257
259
|
"skipCompoundAssignments": true
|
|
258
260
|
}
|
|
259
261
|
],
|
|
260
|
-
"
|
|
261
|
-
"
|
|
262
|
+
"typescript/restrict-template-expressions": "error",
|
|
263
|
+
"typescript/strict-boolean-expressions": [
|
|
262
264
|
"error",
|
|
263
265
|
{
|
|
264
266
|
"allowString": false,
|
package/README.md
CHANGED
|
@@ -118,7 +118,13 @@ node --run lint:prettier
|
|
|
118
118
|
```json
|
|
119
119
|
{
|
|
120
120
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
121
|
-
"extends": ["node_modules/eslint-config-conventions/.oxlintrc.json"]
|
|
121
|
+
"extends": ["node_modules/eslint-config-conventions/.oxlintrc.json"],
|
|
122
|
+
"options": {
|
|
123
|
+
"typeAware": true,
|
|
124
|
+
"typeCheck": true,
|
|
125
|
+
"denyWarnings": true,
|
|
126
|
+
"reportUnusedDisableDirectives": "error"
|
|
127
|
+
}
|
|
122
128
|
}
|
|
123
129
|
```
|
|
124
130
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-conventions",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.3.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>",
|
|
@@ -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 || ^62.0.0 || ^63.0.0",
|
|
52
|
+
"eslint-plugin-unicorn": "^61.0.0 || ^62.0.0 || ^63.0.0 || ^64.0.0",
|
|
53
53
|
"eslint-plugin-import-x": "^4.6.1",
|
|
54
54
|
"globals": "^16.0.0 || ^17.0.0",
|
|
55
55
|
"typescript-eslint": "^8.32.0"
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@types/node": "25.
|
|
79
|
-
"globals": "17.
|
|
78
|
+
"@types/node": "25.5.2",
|
|
79
|
+
"globals": "17.4.0",
|
|
80
80
|
"editorconfig-checker": "6.1.1",
|
|
81
|
-
"oxlint": "1.
|
|
82
|
-
"@oxlint/migrate": "1.
|
|
83
|
-
"eslint": "9.39.
|
|
81
|
+
"oxlint": "1.59.0",
|
|
82
|
+
"@oxlint/migrate": "1.58.0",
|
|
83
|
+
"eslint": "9.39.4",
|
|
84
84
|
"eslint-plugin-promise": "7.2.1",
|
|
85
|
-
"eslint-plugin-unicorn": "
|
|
86
|
-
"eslint-plugin-import-x": "4.16.
|
|
87
|
-
"typescript-eslint": "8.
|
|
85
|
+
"eslint-plugin-unicorn": "64.0.0",
|
|
86
|
+
"eslint-plugin-import-x": "4.16.2",
|
|
87
|
+
"typescript-eslint": "8.58.0",
|
|
88
88
|
"prettier": "3.8.1",
|
|
89
89
|
"semantic-release": "25.0.3",
|
|
90
|
-
"typescript": "
|
|
90
|
+
"typescript": "6.0.2"
|
|
91
91
|
}
|
|
92
92
|
}
|