eslint-config-conventions 21.2.4 → 21.3.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.
Files changed (3) hide show
  1. package/.oxlintrc.json +38 -34
  2. package/README.md +7 -1
  3. 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,19 @@
162
164
  "import/no-named-as-default-member": "off",
163
165
  "import/max-dependencies": "off",
164
166
 
165
- "@typescript-eslint/ban-types": "off",
166
- "@typescript-eslint/no-unnecessary-type-arguments": "off",
167
- "@typescript-eslint/no-unsafe-type-assertion": "off",
168
- "@typescript-eslint/no-unsafe-member-access": "off",
169
- "@typescript-eslint/no-confusing-void-expression": "off",
170
- "@typescript-eslint/no-unsafe-assignment": "off",
171
- "@typescript-eslint/no-misused-promises": "off",
172
- "@typescript-eslint/return-await": ["error", "always"],
173
- "@typescript-eslint/require-await": "off",
174
- "@typescript-eslint/switch-exhaustiveness-check": "off",
175
- "@typescript-eslint/ban-ts-comment": "off",
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",
178
+ "typescript/prefer-readonly-parameter-types": "off",
179
+ "typescript/strict-void-return": "off",
176
180
  "no-unused-vars": [
177
181
  "error",
178
182
  {
@@ -201,7 +205,7 @@
201
205
  "builtinGlobals": false
202
206
  }
203
207
  ],
204
- "@typescript-eslint/only-throw-error": "off",
208
+ "typescript/only-throw-error": "off",
205
209
  "no-unused-expressions": [
206
210
  "error",
207
211
  {
@@ -210,10 +214,10 @@
210
214
  "allowTaggedTemplates": true
211
215
  }
212
216
  ],
213
- "@typescript-eslint/adjacent-overload-signatures": "error",
214
- "@typescript-eslint/consistent-type-definitions": "error",
215
- "@typescript-eslint/consistent-type-imports": "error",
216
- "@typescript-eslint/explicit-function-return-type": [
217
+ "typescript/adjacent-overload-signatures": "error",
218
+ "typescript/consistent-type-definitions": "error",
219
+ "typescript/consistent-type-imports": "error",
220
+ "typescript/explicit-function-return-type": [
217
221
  "error",
218
222
  {
219
223
  "allowExpressions": true,
@@ -222,13 +226,13 @@
222
226
  "allowDirectConstAssertionInArrowFunctions": true
223
227
  }
224
228
  ],
225
- "@typescript-eslint/no-extraneous-class": [
229
+ "typescript/no-extraneous-class": [
226
230
  "error",
227
231
  {
228
232
  "allowWithDecorator": true
229
233
  }
230
234
  ],
231
- "@typescript-eslint/no-floating-promises": [
235
+ "typescript/no-floating-promises": [
232
236
  "error",
233
237
  {
234
238
  "allowForKnownSafeCalls": [
@@ -240,25 +244,25 @@
240
244
  ]
241
245
  }
242
246
  ],
243
- "@typescript-eslint/no-non-null-assertion": "error",
244
- "@typescript-eslint/no-this-alias": "error",
245
- "@typescript-eslint/no-require-imports": "error",
246
- "@typescript-eslint/prefer-function-type": "error",
247
- "@typescript-eslint/prefer-find": "error",
248
- "@typescript-eslint/prefer-nullish-coalescing": "off",
249
- "@typescript-eslint/prefer-readonly": "error",
250
- "@typescript-eslint/prefer-reduce-type-parameter": "error",
251
- "@typescript-eslint/prefer-return-this-type": "error",
252
- "@typescript-eslint/promise-function-async": "error",
253
- "@typescript-eslint/require-array-sort-compare": "error",
254
- "@typescript-eslint/restrict-plus-operands": [
247
+ "typescript/no-non-null-assertion": "error",
248
+ "typescript/no-this-alias": "error",
249
+ "typescript/no-require-imports": "error",
250
+ "typescript/prefer-function-type": "error",
251
+ "typescript/prefer-find": "error",
252
+ "typescript/prefer-nullish-coalescing": "off",
253
+ "typescript/prefer-readonly": "error",
254
+ "typescript/prefer-reduce-type-parameter": "error",
255
+ "typescript/prefer-return-this-type": "error",
256
+ "typescript/promise-function-async": "error",
257
+ "typescript/require-array-sort-compare": "error",
258
+ "typescript/restrict-plus-operands": [
255
259
  "error",
256
260
  {
257
261
  "skipCompoundAssignments": true
258
262
  }
259
263
  ],
260
- "@typescript-eslint/restrict-template-expressions": "error",
261
- "@typescript-eslint/strict-boolean-expressions": [
264
+ "typescript/restrict-template-expressions": "error",
265
+ "typescript/strict-boolean-expressions": [
262
266
  "error",
263
267
  {
264
268
  "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.2.4",
3
+ "version": "21.3.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 || ^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.3.0",
79
- "globals": "17.3.0",
78
+ "@types/node": "25.5.2",
79
+ "globals": "17.4.0",
80
80
  "editorconfig-checker": "6.1.1",
81
- "oxlint": "1.49.0",
82
- "@oxlint/migrate": "1.49.0",
83
- "eslint": "9.39.2",
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": "63.0.0",
86
- "eslint-plugin-import-x": "4.16.1",
87
- "typescript-eslint": "8.56.0",
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": "5.9.3"
90
+ "typescript": "6.0.2"
91
91
  }
92
92
  }