eslint-config-conventions 20.1.3 → 21.0.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 CHANGED
@@ -192,6 +192,7 @@
192
192
  "unicorn/no-unnecessary-array-flat-depth": "error",
193
193
  "unicorn/consistent-assert": "error",
194
194
  "unicorn/no-accessor-recursion": "error",
195
+ "unicorn/no-array-reverse": "off",
195
196
  "react/no-array-index-key": "off",
196
197
  "react-hooks/rules-of-hooks": "error",
197
198
  "react-hooks/exhaustive-deps": "error",
package/README.md CHANGED
@@ -35,9 +35,9 @@ More information about **formatting rules** vs **code-quality rules** can be fou
35
35
 
36
36
  ```sh
37
37
  npm install --save-dev \
38
- eslint@^9.21.0 \
38
+ eslint@^9.22.0 \
39
39
  eslint-plugin-promise@^7.2.1 \
40
- eslint-plugin-unicorn@^59.0.0 \
40
+ eslint-plugin-unicorn@^61.0.0 \
41
41
  eslint-plugin-import-x@^4.6.1 \
42
42
  globals@^16.0.0 \
43
43
  typescript@^5.8.3 \
@@ -62,10 +62,10 @@ Dependencies are:
62
62
  #### `eslint.config.js`
63
63
 
64
64
  ```js
65
- import typescriptESLint from "typescript-eslint"
65
+ import { defineConfig } from "eslint/config"
66
66
  import configConventions from "eslint-config-conventions"
67
67
 
68
- export default typescriptESLint.config(...configConventions, {
68
+ export default defineConfig(...configConventions, {
69
69
  files: ["**/*.ts", "**/*.tsx"],
70
70
  languageOptions: {
71
71
  parser: typescriptESLint.parser,
package/eslint.config.js CHANGED
@@ -1,10 +1,11 @@
1
+ import importX from "eslint-plugin-import-x"
1
2
  import promise from "eslint-plugin-promise"
2
3
  import unicorn from "eslint-plugin-unicorn"
3
- import importX from "eslint-plugin-import-x"
4
+ import { defineConfig } from "eslint/config"
4
5
  import globals from "globals"
5
6
  import typescriptESLint from "typescript-eslint"
6
7
 
7
- export default typescriptESLint.config(
8
+ export default defineConfig(
8
9
  {
9
10
  name: "eslint-config-conventions",
10
11
  plugins: {
@@ -349,8 +350,6 @@ export default typescriptESLint.config(
349
350
  "no-useless-constructor": "off",
350
351
  "@typescript-eslint/no-useless-constructor": "error",
351
352
 
352
- "@typescript-eslint/no-unnecessary-type-conversion": "error",
353
-
354
353
  "@typescript-eslint/no-unnecessary-template-expression": "error",
355
354
  "@typescript-eslint/adjacent-overload-signatures": "error",
356
355
 
@@ -386,7 +385,6 @@ export default typescriptESLint.config(
386
385
 
387
386
  "@typescript-eslint/no-base-to-string": "error",
388
387
  "@typescript-eslint/no-deprecated": "error",
389
- "@typescript-eslint/no-dynamic-delete": "error",
390
388
  "@typescript-eslint/no-extra-non-null-assertion": "error",
391
389
  "@typescript-eslint/no-redundant-type-constituents": "error",
392
390
 
package/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
- import type typescriptESLint from "typescript-eslint"
1
+ import type { defineConfig } from "eslint/config"
2
2
 
3
- declare const eslintConfigConventions: ReturnType<
4
- typeof typescriptESLint.config
5
- >
3
+ declare const eslintConfig: ReturnType<typeof defineConfig>
6
4
 
7
- export default eslintConfigConventions
5
+ export default eslintConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-conventions",
3
- "version": "20.1.3",
3
+ "version": "21.0.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>",
@@ -47,9 +47,9 @@
47
47
  "release": "semantic-release"
48
48
  },
49
49
  "peerDependencies": {
50
- "eslint": "^9.21.0",
50
+ "eslint": "^9.22.0",
51
51
  "eslint-plugin-promise": "^7.2.1",
52
- "eslint-plugin-unicorn": "^59.0.0 || ^60.0.0",
52
+ "eslint-plugin-unicorn": "^61.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.3.0",
79
- "globals": "16.3.0",
78
+ "@types/node": "24.3.1",
79
+ "globals": "16.4.0",
80
80
  "editorconfig-checker": "6.1.0",
81
- "oxlint": "1.13.0",
82
- "@oxlint/migrate": "1.13.0",
83
- "eslint": "9.34.0",
81
+ "oxlint": "1.15.0",
82
+ "@oxlint/migrate": "1.15.0",
83
+ "eslint": "9.35.0",
84
84
  "eslint-plugin-promise": "7.2.1",
85
- "eslint-plugin-unicorn": "60.0.0",
85
+ "eslint-plugin-unicorn": "61.0.2",
86
86
  "eslint-plugin-import-x": "4.16.1",
87
- "typescript-eslint": "8.41.0",
87
+ "typescript-eslint": "8.43.0",
88
88
  "prettier": "3.6.2",
89
- "semantic-release": "24.2.7",
89
+ "semantic-release": "24.2.8",
90
90
  "typescript": "5.9.2"
91
91
  }
92
92
  }