@msobiecki/eslint-config 9.1.0 → 9.3.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,42 +1,50 @@
1
- # [9.1.0](https://github.com/msobiecki/eslint-config/compare/v9.0.0...v9.1.0) (2025-10-18)
1
+ # [9.3.0](https://github.com/msobiecki/eslint-config/compare/v9.2.0...v9.3.0) (2025-10-20)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * update react ([39b0817](https://github.com/msobiecki/eslint-config/commit/39b08174581bb111db248f12b3938878cf91dcc8))
6
+ * update node ([79d2310](https://github.com/msobiecki/eslint-config/commit/79d231027fac6dd84f70fb56dd6ef0d920cb324f))
7
+ * update node ([5137a0f](https://github.com/msobiecki/eslint-config/commit/5137a0f5a267673a4d6dac32464cdd321d81f6a4))
7
8
 
8
- # [9.0.0](https://github.com/msobiecki/eslint-config/compare/v8.40.0...v9.0.0) (2025-10-18)
9
+ # [9.2.0](https://github.com/msobiecki/eslint-config/compare/v9.1.0...v9.2.0) (2025-10-18)
9
10
 
11
+ ### Features
10
12
 
11
- ### chore
13
+ - update node ([69e772a](https://github.com/msobiecki/eslint-config/commit/69e772a8332f00862e7cef1fd3d7cb0f6055a3ad))
12
14
 
13
- * **eslint:** update to ESLint 9 and migrate to flat config ([e0be675](https://github.com/msobiecki/eslint-config/commit/e0be67505419e761ea645b6aff484e495089d6ad))
15
+ # [9.1.0](https://github.com/msobiecki/eslint-config/compare/v9.0.0...v9.1.0) (2025-10-18)
16
+
17
+ ### Features
14
18
 
19
+ - update react ([39b0817](https://github.com/msobiecki/eslint-config/commit/39b08174581bb111db248f12b3938878cf91dcc8))
20
+
21
+ # [9.0.0](https://github.com/msobiecki/eslint-config/compare/v8.40.0...v9.0.0) (2025-10-18)
22
+
23
+ ### chore
24
+
25
+ - **eslint:** update to ESLint 9 and migrate to flat config ([e0be675](https://github.com/msobiecki/eslint-config/commit/e0be67505419e761ea645b6aff484e495089d6ad))
15
26
 
16
27
  ### BREAKING CHANGES
17
28
 
18
- * **eslint:** The ESLint configuration has been migrated to the new flat config.
29
+ - **eslint:** The ESLint configuration has been migrated to the new flat config.
19
30
 
20
31
  # [8.40.0](https://github.com/msobiecki/eslint-config/compare/v8.39.0...v8.40.0) (2025-10-18)
21
32
 
22
-
23
33
  ### Features
24
34
 
25
- * new breaking base ([bb815f3](https://github.com/msobiecki/eslint-config/commit/bb815f3cb572cb541ce96705112d72753d6d8dea))
35
+ - new breaking base ([bb815f3](https://github.com/msobiecki/eslint-config/commit/bb815f3cb572cb541ce96705112d72753d6d8dea))
26
36
 
27
37
  # [8.39.0](https://github.com/msobiecki/eslint-config/compare/v8.38.2...v8.39.0) (2025-10-18)
28
38
 
29
-
30
39
  ### Features
31
40
 
32
- * update Eslin9 ([#272](https://github.com/msobiecki/eslint-config/issues/272)) ([2d2763f](https://github.com/msobiecki/eslint-config/commit/2d2763f22deee8239a5aac9b67137a4adb07a685))
41
+ - update Eslin9 ([#272](https://github.com/msobiecki/eslint-config/issues/272)) ([2d2763f](https://github.com/msobiecki/eslint-config/commit/2d2763f22deee8239a5aac9b67137a4adb07a685))
33
42
 
34
43
  ## [8.38.2](https://github.com/msobiecki/eslint-config/compare/v8.38.1...v8.38.2) (2025-09-09)
35
44
 
36
-
37
45
  ### Bug Fixes
38
46
 
39
- * change glob ([8fb7352](https://github.com/msobiecki/eslint-config/commit/8fb7352bfb9a1704916481893fec4e3a87171e95))
47
+ - change glob ([8fb7352](https://github.com/msobiecki/eslint-config/commit/8fb7352bfb9a1704916481893fec4e3a87171e95))
40
48
 
41
49
  ## [8.38.1](https://github.com/msobiecki/eslint-config/compare/v8.38.0...v8.38.1) (2025-09-09)
42
50
 
package/eslint.config.js CHANGED
@@ -1,5 +1,6 @@
1
1
  import eslint from "@eslint/js";
2
2
  import tseslint from "typescript-eslint";
3
+ import globals from "globals";
3
4
 
4
5
  import reactBasePlugin from "eslint-plugin-react";
5
6
  import reactHooksPlugin from "eslint-plugin-react-hooks";
@@ -115,6 +116,11 @@ export const nodePreset = [
115
116
  {
116
117
  name: "Node.js",
117
118
  files: ["**/*.{js,mjs,cjs}"],
119
+ languageOptions: {
120
+ globals: {
121
+ ...globals.browser,
122
+ },
123
+ },
118
124
  plugins: { n: nPlugin },
119
125
  rules: { ...nPlugin.configs?.["flat/recommended"]?.rules, ...nodeRules },
120
126
  },
@@ -163,8 +169,8 @@ export const jestPreset = [
163
169
  files: ["**/__tests__/**/*.[jt]s?(x)", "**/?(*.)+(spec|test).[jt]s?(x)"],
164
170
  languageOptions: {
165
171
  globals: {
166
- ...jestPlugin.configs?.["flat/recommended"]?.languageOptions?.globals,
167
- process: "readonly",
172
+ ...globals.node,
173
+ ...globals.jest,
168
174
  },
169
175
  },
170
176
  plugins: { jest: jestPlugin },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@msobiecki/eslint-config",
3
- "version": "9.1.0",
3
+ "version": "9.3.0",
4
4
  "private": false,
5
5
  "description": "An ESLint shareable config for JavaScript/TypeScript ecosystem's.",
6
6
  "keywords": [
@@ -43,6 +43,7 @@
43
43
  "eslint-plugin-storybook": "^9.1.12",
44
44
  "eslint-plugin-testing-library": "^7.13.3",
45
45
  "eslint-plugin-unicorn": "^61.0.2",
46
+ "globals": "^16.4.0",
46
47
  "typescript-eslint": "^8.46.1"
47
48
  },
48
49
  "devDependencies": {
@@ -2,12 +2,14 @@ import { defineConfig } from "eslint/config";
2
2
 
3
3
  import {
4
4
  basePreset,
5
- bestPracticePreset,
5
+ nodePreset,
6
6
  jestPreset,
7
+ bestPracticePreset,
7
8
  } from "../eslint.config.js";
8
9
 
9
10
  export default defineConfig([
10
11
  ...basePreset,
12
+ ...nodePreset,
11
13
  ...jestPreset,
12
14
  ...bestPracticePreset,
13
15
  ]);