@msobiecki/eslint-config 9.7.0 → 9.8.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/CHANGELOG.md +8 -0
- package/eslint.config.js +9 -9
- package/package.json +3 -2
- package/tests/eslint.config.js +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
# [9.8.0](https://github.com/msobiecki/eslint-config/compare/v9.7.0...v9.8.0) (2025-10-20)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* update node ([3c1bcaa](https://github.com/msobiecki/eslint-config/commit/3c1bcaa03ccd437faa0babf95f8195805b1365e8))
|
|
7
|
+
* update node ([db95380](https://github.com/msobiecki/eslint-config/commit/db95380fc66a8df94bcfaf069562196130b0a8c5))
|
|
8
|
+
|
|
1
9
|
# [9.7.0](https://github.com/msobiecki/eslint-config/compare/v9.6.0...v9.7.0) (2025-10-20)
|
|
2
10
|
|
|
3
11
|
|
package/eslint.config.js
CHANGED
|
@@ -17,7 +17,7 @@ import securityPlugin from "eslint-plugin-security";
|
|
|
17
17
|
import jsdocPlugin from "eslint-plugin-jsdoc";
|
|
18
18
|
import compatPlugin from "eslint-plugin-compat";
|
|
19
19
|
import jsxA11yPlugin from "eslint-plugin-jsx-a11y";
|
|
20
|
-
import
|
|
20
|
+
import importxPlugin from "eslint-plugin-import-x";
|
|
21
21
|
import storybookPlugin from "eslint-plugin-storybook";
|
|
22
22
|
|
|
23
23
|
import getTsConfig from "./utils/get-ts-config.js";
|
|
@@ -156,27 +156,27 @@ export const importPreset = [
|
|
|
156
156
|
{
|
|
157
157
|
name: "Import plugin",
|
|
158
158
|
files: ["**/*.{js,jsx,mjs,cjs}"],
|
|
159
|
-
plugins: { import:
|
|
159
|
+
plugins: { "import-x": importxPlugin },
|
|
160
160
|
languageOptions: {
|
|
161
|
-
...
|
|
161
|
+
...importxPlugin.flatConfigs?.recommended?.languageOptions,
|
|
162
162
|
},
|
|
163
163
|
rules: {
|
|
164
|
-
...
|
|
164
|
+
...importxPlugin.flatConfigs?.recommended?.rules,
|
|
165
165
|
},
|
|
166
166
|
},
|
|
167
167
|
{
|
|
168
168
|
name: "Import plugin TypeScript",
|
|
169
169
|
files: ["**/*.{ts,tsx,mts,cts}"],
|
|
170
|
-
plugins: { import:
|
|
170
|
+
plugins: { "import-x": importxPlugin },
|
|
171
171
|
languageOptions: {
|
|
172
|
-
...
|
|
172
|
+
...importxPlugin.flatConfigs?.recommended?.languageOptions,
|
|
173
173
|
},
|
|
174
174
|
rules: {
|
|
175
|
-
...
|
|
176
|
-
...
|
|
175
|
+
...importxPlugin.flatConfigs?.recommended?.rules,
|
|
176
|
+
...importxPlugin.flatConfigs?.typescript?.rules,
|
|
177
177
|
},
|
|
178
178
|
settings: {
|
|
179
|
-
...
|
|
179
|
+
...importxPlugin.flatConfigs?.typescript?.settings,
|
|
180
180
|
},
|
|
181
181
|
},
|
|
182
182
|
];
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@msobiecki/eslint-config",
|
|
3
|
-
"version": "9.
|
|
3
|
+
"version": "9.8.0",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "An ESLint shareable config for JavaScript/TypeScript ecosystem's.",
|
|
6
6
|
"keywords": [
|
|
@@ -27,9 +27,10 @@
|
|
|
27
27
|
"dependencies": {
|
|
28
28
|
"@eslint/js": "^9.37.0",
|
|
29
29
|
"@next/eslint-plugin-next": "^15.5.6",
|
|
30
|
+
"eslint-import-resolver-typescript": "^4.4.4",
|
|
30
31
|
"eslint-plugin-compat": "^6.0.2",
|
|
31
32
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
32
|
-
"eslint-plugin-import": "^
|
|
33
|
+
"eslint-plugin-import-x": "^4.16.1",
|
|
33
34
|
"eslint-plugin-jest": "^29.0.1",
|
|
34
35
|
"eslint-plugin-jest-dom": "^5.5.0",
|
|
35
36
|
"eslint-plugin-jsdoc": "^61.1.4",
|
package/tests/eslint.config.js
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
nodePreset,
|
|
6
6
|
jestPreset,
|
|
7
7
|
bestPracticePreset,
|
|
8
|
+
importPreset,
|
|
8
9
|
} from "../eslint.config.js";
|
|
9
10
|
|
|
10
11
|
export default defineConfig([
|
|
@@ -12,4 +13,5 @@ export default defineConfig([
|
|
|
12
13
|
...bestPracticePreset,
|
|
13
14
|
...nodePreset,
|
|
14
15
|
...jestPreset,
|
|
16
|
+
...importPreset,
|
|
15
17
|
]);
|