@msobiecki/eslint-config 9.4.0 → 9.6.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,17 @@
1
+ # [9.6.0](https://github.com/msobiecki/eslint-config/compare/v9.5.0...v9.6.0) (2025-10-20)
2
+
3
+
4
+ ### Features
5
+
6
+ * update node ([9e695a8](https://github.com/msobiecki/eslint-config/commit/9e695a84a3fd28d11c97ed778c9e490644ff4b90))
7
+
8
+ # [9.5.0](https://github.com/msobiecki/eslint-config/compare/v9.4.0...v9.5.0) (2025-10-20)
9
+
10
+
11
+ ### Features
12
+
13
+ * update node ([821e1b8](https://github.com/msobiecki/eslint-config/commit/821e1b8595cdb79b7030e7b6fe1e5516ea87313d))
14
+
1
15
  # [9.4.0](https://github.com/msobiecki/eslint-config/compare/v9.3.0...v9.4.0) (2025-10-20)
2
16
 
3
17
 
package/eslint.config.js CHANGED
@@ -115,7 +115,18 @@ export const reactPreset = [
115
115
  export const nodePreset = [
116
116
  {
117
117
  name: "Node.js",
118
- files: ["**/*.{js,mjs,cjs,ts,cts,mts}"],
118
+ files: ["**/*.{js,mjs,cjs}"],
119
+ languageOptions: {
120
+ globals: {
121
+ ...globals.node,
122
+ },
123
+ },
124
+ plugins: { n: nPlugin },
125
+ rules: { ...nPlugin.configs?.["flat/recommended"]?.rules, ...nodeRules },
126
+ },
127
+ {
128
+ name: "Node.js TypeScript",
129
+ files: ["**/*.{ts,cts,mts}"],
119
130
  languageOptions: {
120
131
  globals: {
121
132
  ...globals.node,
@@ -145,17 +156,31 @@ export const importPreset = [
145
156
  {
146
157
  name: "Import plugin",
147
158
  files: ["**/*.{js,jsx,mjs,cjs}"],
159
+ languageOptions: {
160
+ globals: {
161
+ ...importPlugin.flatConfigs?.recommended?.languageOptions,
162
+ },
163
+ },
148
164
  plugins: { import: importPlugin },
149
165
  rules: {
150
- ...importPlugin.configs?.recommended?.rules,
166
+ ...importPlugin.flatConfigs?.recommended?.rules,
151
167
  },
152
168
  },
153
169
  {
154
170
  name: "Import plugin TypeScript",
155
171
  files: ["**/*.{ts,tsx,mts,cts}"],
172
+ languageOptions: {
173
+ globals: {
174
+ ...importPlugin.flatConfigs?.recommended?.languageOptions,
175
+ },
176
+ },
156
177
  plugins: { import: importPlugin },
157
178
  rules: {
158
- ...importPlugin.configs?.["recommended-typescript"]?.rules,
179
+ ...importPlugin.flatConfigs?.recommended?.rules,
180
+ ...importPlugin.flatConfigs?.typescript?.rules,
181
+ },
182
+ settings: {
183
+ ...importPlugin.flatConfigs?.typescript?.settings,
159
184
  },
160
185
  },
161
186
  ];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msobiecki/eslint-config",
3
- "version": "9.4.0",
3
+ "version": "9.6.0",
4
4
  "private": false,
5
5
  "description": "An ESLint shareable config for JavaScript/TypeScript ecosystem's.",
6
6
  "keywords": [