eslint-config-conventions 21.0.0 → 21.0.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 +12 -2
- package/eslint.config.js +2 -2
- package/package.json +7 -7
package/.oxlintrc.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/oxlint/configuration_schema.json",
|
|
3
|
-
"plugins": ["typescript", "unicorn", "react", "oxc", "promise"],
|
|
3
|
+
"plugins": ["typescript", "unicorn", "react", "oxc", "import", "promise"],
|
|
4
4
|
"categories": {
|
|
5
5
|
"correctness": "error",
|
|
6
6
|
"perf": "error",
|
|
@@ -137,6 +137,7 @@
|
|
|
137
137
|
],
|
|
138
138
|
"no-useless-call": "error",
|
|
139
139
|
"no-useless-concat": "error",
|
|
140
|
+
"no-useless-computed-key": "error",
|
|
140
141
|
"no-useless-constructor": "error",
|
|
141
142
|
"no-useless-escape": "error",
|
|
142
143
|
"no-useless-rename": "error",
|
|
@@ -241,13 +242,22 @@
|
|
|
241
242
|
"@next/next/no-document-import-in-page": "error",
|
|
242
243
|
"@next/next/no-duplicate-head": "error",
|
|
243
244
|
"@next/next/no-head-import-in-document": "error",
|
|
244
|
-
"@next/next/no-script-component-in-head": "error"
|
|
245
|
+
"@next/next/no-script-component-in-head": "error",
|
|
246
|
+
"import-x/no-absolute-path": "error",
|
|
247
|
+
"import-x/no-webpack-loader-syntax": "error",
|
|
248
|
+
"import-x/no-self-import": "error",
|
|
249
|
+
"import-x/no-duplicates": "error",
|
|
250
|
+
"import-x/no-named-default": "error",
|
|
251
|
+
"import-x/no-empty-named-blocks": "error",
|
|
252
|
+
"import-x/no-anonymous-default-export": "error",
|
|
253
|
+
"import-x/consistent-type-specifier-style": ["error", "prefer-top-level"]
|
|
245
254
|
},
|
|
246
255
|
"overrides": [
|
|
247
256
|
{
|
|
248
257
|
"files": ["**/*.ts", "**/*.tsx"],
|
|
249
258
|
"rules": {
|
|
250
259
|
"@typescript-eslint/no-unnecessary-type-arguments": "off",
|
|
260
|
+
"@typescript-eslint/no-unsafe-type-assertion": "off",
|
|
251
261
|
"no-unused-vars": [
|
|
252
262
|
"error",
|
|
253
263
|
{
|
package/eslint.config.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import importXPlugin from "eslint-plugin-import-x"
|
|
2
2
|
import promise from "eslint-plugin-promise"
|
|
3
3
|
import unicorn from "eslint-plugin-unicorn"
|
|
4
4
|
import { defineConfig } from "eslint/config"
|
|
@@ -11,7 +11,7 @@ export default defineConfig(
|
|
|
11
11
|
plugins: {
|
|
12
12
|
promise,
|
|
13
13
|
unicorn,
|
|
14
|
-
"import-x":
|
|
14
|
+
"import-x": importXPlugin,
|
|
15
15
|
},
|
|
16
16
|
linterOptions: {
|
|
17
17
|
reportUnusedDisableDirectives: "error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-conventions",
|
|
3
|
-
"version": "21.0.
|
|
3
|
+
"version": "21.0.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>",
|
|
@@ -75,18 +75,18 @@
|
|
|
75
75
|
}
|
|
76
76
|
},
|
|
77
77
|
"devDependencies": {
|
|
78
|
-
"@types/node": "24.
|
|
78
|
+
"@types/node": "24.5.2",
|
|
79
79
|
"globals": "16.4.0",
|
|
80
80
|
"editorconfig-checker": "6.1.0",
|
|
81
|
-
"oxlint": "1.
|
|
82
|
-
"@oxlint/migrate": "1.
|
|
83
|
-
"eslint": "9.
|
|
81
|
+
"oxlint": "1.18.0",
|
|
82
|
+
"@oxlint/migrate": "1.18.0",
|
|
83
|
+
"eslint": "9.36.0",
|
|
84
84
|
"eslint-plugin-promise": "7.2.1",
|
|
85
85
|
"eslint-plugin-unicorn": "61.0.2",
|
|
86
86
|
"eslint-plugin-import-x": "4.16.1",
|
|
87
|
-
"typescript-eslint": "8.
|
|
87
|
+
"typescript-eslint": "8.44.1",
|
|
88
88
|
"prettier": "3.6.2",
|
|
89
|
-
"semantic-release": "24.2.
|
|
89
|
+
"semantic-release": "24.2.9",
|
|
90
90
|
"typescript": "5.9.2"
|
|
91
91
|
}
|
|
92
92
|
}
|