@msobiecki/eslint-config 9.0.0 → 9.2.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 +14 -0
- package/eslint.config.js +7 -2
- package/package.json +1 -1
- package/tests/eslint.config.js +3 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
+
# [9.2.0](https://github.com/msobiecki/eslint-config/compare/v9.1.0...v9.2.0) (2025-10-18)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* update node ([69e772a](https://github.com/msobiecki/eslint-config/commit/69e772a8332f00862e7cef1fd3d7cb0f6055a3ad))
|
|
7
|
+
|
|
8
|
+
# [9.1.0](https://github.com/msobiecki/eslint-config/compare/v9.0.0...v9.1.0) (2025-10-18)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* update react ([39b0817](https://github.com/msobiecki/eslint-config/commit/39b08174581bb111db248f12b3938878cf91dcc8))
|
|
14
|
+
|
|
1
15
|
# [9.0.0](https://github.com/msobiecki/eslint-config/compare/v8.40.0...v9.0.0) (2025-10-18)
|
|
2
16
|
|
|
3
17
|
|
package/eslint.config.js
CHANGED
|
@@ -99,7 +99,8 @@ export const reactPreset = [
|
|
|
99
99
|
parserOptions: { ecmaFeatures: { jsx: true } },
|
|
100
100
|
},
|
|
101
101
|
rules: {
|
|
102
|
-
...reactBasePlugin.configs?.recommended?.rules,
|
|
102
|
+
...reactBasePlugin.configs?.flat?.recommended?.rules,
|
|
103
|
+
...reactBasePlugin.configs?.flat?.["jsx-runtime"]?.rules,
|
|
103
104
|
...reactHooksPlugin.configs?.flat?.recommended?.rules,
|
|
104
105
|
...jsxA11yPlugin.configs?.recommended?.rules,
|
|
105
106
|
},
|
|
@@ -114,6 +115,11 @@ export const nodePreset = [
|
|
|
114
115
|
{
|
|
115
116
|
name: "Node.js",
|
|
116
117
|
files: ["**/*.{js,mjs,cjs}"],
|
|
118
|
+
languageOptions: {
|
|
119
|
+
globals: {
|
|
120
|
+
...nPlugin.configs?.["flat/recommended"]?.languageOptions?.globals,
|
|
121
|
+
},
|
|
122
|
+
},
|
|
117
123
|
plugins: { n: nPlugin },
|
|
118
124
|
rules: { ...nPlugin.configs?.["flat/recommended"]?.rules, ...nodeRules },
|
|
119
125
|
},
|
|
@@ -163,7 +169,6 @@ export const jestPreset = [
|
|
|
163
169
|
languageOptions: {
|
|
164
170
|
globals: {
|
|
165
171
|
...jestPlugin.configs?.["flat/recommended"]?.languageOptions?.globals,
|
|
166
|
-
process: "readonly",
|
|
167
172
|
},
|
|
168
173
|
},
|
|
169
174
|
plugins: { jest: jestPlugin },
|
package/package.json
CHANGED
package/tests/eslint.config.js
CHANGED
|
@@ -2,12 +2,14 @@ import { defineConfig } from "eslint/config";
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
basePreset,
|
|
5
|
-
|
|
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
|
]);
|