@msobiecki/eslint-config 9.6.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 CHANGED
@@ -1,3 +1,18 @@
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
+
9
+ # [9.7.0](https://github.com/msobiecki/eslint-config/compare/v9.6.0...v9.7.0) (2025-10-20)
10
+
11
+
12
+ ### Features
13
+
14
+ * update node ([5e79fa6](https://github.com/msobiecki/eslint-config/commit/5e79fa6a4c6f0cb683274c7a8bc631d04df94628))
15
+
1
16
  # [9.6.0](https://github.com/msobiecki/eslint-config/compare/v9.5.0...v9.6.0) (2025-10-20)
2
17
 
3
18
 
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 importPlugin from "eslint-plugin-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";
@@ -116,23 +116,23 @@ export const nodePreset = [
116
116
  {
117
117
  name: "Node.js",
118
118
  files: ["**/*.{js,mjs,cjs}"],
119
+ plugins: { n: nPlugin },
119
120
  languageOptions: {
120
121
  globals: {
121
122
  ...globals.node,
122
123
  },
123
124
  },
124
- plugins: { n: nPlugin },
125
125
  rules: { ...nPlugin.configs?.["flat/recommended"]?.rules, ...nodeRules },
126
126
  },
127
127
  {
128
128
  name: "Node.js TypeScript",
129
129
  files: ["**/*.{ts,cts,mts}"],
130
+ plugins: { n: nPlugin },
130
131
  languageOptions: {
131
132
  globals: {
132
133
  ...globals.node,
133
134
  },
134
135
  },
135
- plugins: { n: nPlugin },
136
136
  rules: { ...nPlugin.configs?.["flat/recommended"]?.rules, ...nodeRules },
137
137
  },
138
138
  ];
@@ -156,31 +156,27 @@ export const importPreset = [
156
156
  {
157
157
  name: "Import plugin",
158
158
  files: ["**/*.{js,jsx,mjs,cjs}"],
159
+ plugins: { "import-x": importxPlugin },
159
160
  languageOptions: {
160
- globals: {
161
- ...importPlugin.flatConfigs?.recommended?.languageOptions,
162
- },
161
+ ...importxPlugin.flatConfigs?.recommended?.languageOptions,
163
162
  },
164
- plugins: { import: importPlugin },
165
163
  rules: {
166
- ...importPlugin.flatConfigs?.recommended?.rules,
164
+ ...importxPlugin.flatConfigs?.recommended?.rules,
167
165
  },
168
166
  },
169
167
  {
170
168
  name: "Import plugin TypeScript",
171
169
  files: ["**/*.{ts,tsx,mts,cts}"],
170
+ plugins: { "import-x": importxPlugin },
172
171
  languageOptions: {
173
- globals: {
174
- ...importPlugin.flatConfigs?.recommended?.languageOptions,
175
- },
172
+ ...importxPlugin.flatConfigs?.recommended?.languageOptions,
176
173
  },
177
- plugins: { import: importPlugin },
178
174
  rules: {
179
- ...importPlugin.flatConfigs?.recommended?.rules,
180
- ...importPlugin.flatConfigs?.typescript?.rules,
175
+ ...importxPlugin.flatConfigs?.recommended?.rules,
176
+ ...importxPlugin.flatConfigs?.typescript?.rules,
181
177
  },
182
178
  settings: {
183
- ...importPlugin.flatConfigs?.typescript?.settings,
179
+ ...importxPlugin.flatConfigs?.typescript?.settings,
184
180
  },
185
181
  },
186
182
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msobiecki/eslint-config",
3
- "version": "9.6.0",
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": "^2.32.0",
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",
@@ -5,11 +5,13 @@ 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([
11
12
  ...basePreset,
13
+ ...bestPracticePreset,
12
14
  ...nodePreset,
13
15
  ...jestPreset,
14
- ...bestPracticePreset,
16
+ ...importPreset,
15
17
  ]);