@moso/eslint-config 3.6.0 → 3.6.1
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/README.md +5 -2
- package/dist/index.mjs +1 -1
- package/package.json +19 -10
package/README.md
CHANGED
|
@@ -17,7 +17,7 @@ Flat ESLint config for JavaScript, TypeScript, Vue, React, and more.
|
|
|
17
17
|
- Ships its own small [`@moso`](#custom-rules)-ruleset with security and hygiene rules
|
|
18
18
|
- Every config can be enabled/disabled
|
|
19
19
|
- Respects `.gitignore` by default
|
|
20
|
-
- Requires Node.js >= v22.
|
|
20
|
+
- Requires Node.js >= v22.23.4/v24.22.1/v26.12.1, ESLint v10+
|
|
21
21
|
- Enhanced security by [Socket's Bun Security Scanner](https://npmx.dev/package/@socketsecurity/bun-security-scanner)
|
|
22
22
|
|
|
23
23
|
> [!NOTE]
|
|
@@ -952,7 +952,10 @@ bunx simple-git-hooks # bun
|
|
|
952
952
|
|
|
953
953
|
ESLint v9 reached [EOL on August 6th, 2026](https://eslint.org/version-support). The world of development moves fast, and as with Vue v2.x, I don't intend to support versions that have reached EOL unless absolutely necessary. The same goes with older Node.js versions.
|
|
954
954
|
|
|
955
|
-
Even though ESLint v10 supports Node.js `v20.19.0` (as of current status), this version has also reached EOL. The rest of their requirements mention `v22.13.0` and `>= 24`.
|
|
955
|
+
Even though ESLint v10 supports Node.js `v20.19.0` (as of current status), this version has also reached EOL. The rest of their requirements mention `v22.13.0` and `>= 24`.
|
|
956
|
+
|
|
957
|
+
> [!WARN]
|
|
958
|
+
> However, the **minimum requirements** has been raised in this project based on the [Node2Shell CVE](https://www.aikido.dev/blog/node2shell-nodejs-brotli-rce-cve-2026-111497) to match all patched versions of Node.js.
|
|
956
959
|
|
|
957
960
|
### TypeScript 7?
|
|
958
961
|
|
package/dist/index.mjs
CHANGED
|
@@ -1320,7 +1320,7 @@ const ruleNoUnneededArrayFlatMap = createRule({
|
|
|
1320
1320
|
} })
|
|
1321
1321
|
});
|
|
1322
1322
|
// src/rules/package.json
|
|
1323
|
-
var version = "3.6.
|
|
1323
|
+
var version = "3.6.1";
|
|
1324
1324
|
// src/rules/prefer-early-return/prefer-early-return.ts
|
|
1325
1325
|
const isTriggering = (node, maximumStatements) => {
|
|
1326
1326
|
if (node.type !== AST_NODE_TYPES.IfStatement || node.alternate !== null) return false;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@moso/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "3.6.
|
|
4
|
+
"version": "3.6.1",
|
|
5
5
|
"description": "@moso's sharable ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Morten Sørensen",
|
|
@@ -44,13 +44,21 @@
|
|
|
44
44
|
"dist/"
|
|
45
45
|
],
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": "^22.22.
|
|
47
|
+
"node": "^22.23.4 || ^24.22.1 || ^26.12.1",
|
|
48
|
+
"bun": ">=1.4.4"
|
|
49
|
+
},
|
|
50
|
+
"devEngines": {
|
|
51
|
+
"runtime": {
|
|
52
|
+
"name": "node",
|
|
53
|
+
"version": "^22.23.4 || ^24.22.1 || ^26.12.1"
|
|
54
|
+
}
|
|
48
55
|
},
|
|
49
56
|
"scripts": {
|
|
50
57
|
"build": "bun run typegen && tsdown --clean --dts",
|
|
51
58
|
"build:inspector": "bun run build && bunx @eslint/config-inspector build --stats --config eslint-inspector.config.ts --out-dir ./.eslint-config-inspector",
|
|
52
59
|
"dev": "bunx @eslint/config-inspector --config eslint-inspector.config.ts",
|
|
53
60
|
"lint": "eslint",
|
|
61
|
+
"preinstall": "bun scripts/bun-version.ts",
|
|
54
62
|
"prepack": "bun run build",
|
|
55
63
|
"prepare": "bun run simple-git-hooks",
|
|
56
64
|
"release": "bumpp --recursive && bun publish",
|
|
@@ -78,7 +86,7 @@
|
|
|
78
86
|
"eslint-plugin-svelte": "^3.23.0",
|
|
79
87
|
"eslint-plugin-vue": "^10.11.0",
|
|
80
88
|
"eslint-plugin-vuejs-accessibility": "^2.6.0",
|
|
81
|
-
"svelte-eslint-parser": "^1.
|
|
89
|
+
"svelte-eslint-parser": "^1.10.0",
|
|
82
90
|
"typescript": "^6.0.0 || ^7.0.0"
|
|
83
91
|
},
|
|
84
92
|
"peerDependenciesMeta": {
|
|
@@ -138,15 +146,15 @@
|
|
|
138
146
|
"@typescript-eslint/eslint-plugin": "^8.72.0",
|
|
139
147
|
"@typescript-eslint/parser": "^8.72.0",
|
|
140
148
|
"@typescript-eslint/utils": "^8.72.0",
|
|
141
|
-
"@vitest/eslint-plugin": "^1.6.
|
|
149
|
+
"@vitest/eslint-plugin": "^1.6.28",
|
|
142
150
|
"eslint-config-flat-gitignore": "^2.4.0",
|
|
143
151
|
"eslint-flat-config-utils": "^3.2.0",
|
|
144
152
|
"eslint-merge-processors": "^2.0.0",
|
|
145
153
|
"eslint-plugin-baseline-js": "^0.7.5",
|
|
146
|
-
"eslint-plugin-de-morgan": "^2.
|
|
154
|
+
"eslint-plugin-de-morgan": "^2.3.0",
|
|
147
155
|
"eslint-plugin-functional": "^10.0.1",
|
|
148
156
|
"eslint-plugin-import-lite": "^0.6.0",
|
|
149
|
-
"eslint-plugin-jsdoc": "^65.4.
|
|
157
|
+
"eslint-plugin-jsdoc": "^65.4.2",
|
|
150
158
|
"eslint-plugin-jsonc": "^3.4.2",
|
|
151
159
|
"eslint-plugin-n": "^18.5.0",
|
|
152
160
|
"eslint-plugin-no-only-tests": "^3.4.0",
|
|
@@ -167,13 +175,14 @@
|
|
|
167
175
|
"yaml-eslint-parser": "^2.1.0"
|
|
168
176
|
},
|
|
169
177
|
"devDependencies": {
|
|
170
|
-
"@eslint-react/eslint-plugin": "^5.28.
|
|
178
|
+
"@eslint-react/eslint-plugin": "^5.28.7",
|
|
171
179
|
"@eslint/compat": "^2.1.1",
|
|
172
180
|
"@eslint/config-inspector": "^3.5.0",
|
|
173
|
-
"@moso/eslint-plugin": "3.
|
|
181
|
+
"@moso/eslint-plugin": "3.6.1",
|
|
174
182
|
"@next/eslint-plugin-next": "^16.4.2",
|
|
175
183
|
"@socketsecurity/bun-security-scanner": "^1.1.3",
|
|
176
184
|
"@types/eslint-plugin-jsx-a11y": "^6.10.1",
|
|
185
|
+
"@types/bun": "^1.4.4",
|
|
177
186
|
"@types/node": "^26.6.5",
|
|
178
187
|
"@typescript-eslint/rule-tester": "^8.72.0",
|
|
179
188
|
"@vitest/coverage-v8": "^5.0.5",
|
|
@@ -195,9 +204,9 @@
|
|
|
195
204
|
"nano-staged": "^1.0.2",
|
|
196
205
|
"simple-git-hooks": "^2.14.0",
|
|
197
206
|
"svelte": "^5.57.2",
|
|
198
|
-
"svelte-eslint-parser": "^1.
|
|
207
|
+
"svelte-eslint-parser": "^1.10.0",
|
|
199
208
|
"ts-dedent": "^2.3.0",
|
|
200
|
-
"tsdown": "^0.23.
|
|
209
|
+
"tsdown": "^0.23.2",
|
|
201
210
|
"tsx": "^4.23.15",
|
|
202
211
|
"typescript": "^6.0.3",
|
|
203
212
|
"vitest": "^5.0.5"
|