@moso/eslint-config 3.6.0 → 3.6.2
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.d.mts +401 -397
- package/dist/index.mjs +1 -1
- package/package.json +22 -13
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.2";
|
|
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.2",
|
|
5
5
|
"description": "@moso's sharable ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Morten Sørensen",
|
|
@@ -44,7 +44,14 @@
|
|
|
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",
|
|
@@ -52,9 +59,10 @@
|
|
|
52
59
|
"dev": "bunx @eslint/config-inspector --config eslint-inspector.config.ts",
|
|
53
60
|
"lint": "eslint",
|
|
54
61
|
"prepack": "bun run build",
|
|
55
|
-
"prepare": "bun run simple-git-hooks",
|
|
62
|
+
"prepare": "bun scripts/bun-version.ts && bun run simple-git-hooks",
|
|
56
63
|
"release": "bumpp --recursive && bun publish",
|
|
57
64
|
"test": "vitest run",
|
|
65
|
+
"test:coverage": "bun run test --coverage",
|
|
58
66
|
"test:update-snapshots": "bun run test --update",
|
|
59
67
|
"typecheck": "tsc --noEmit",
|
|
60
68
|
"typegen": "tsx scripts/typegen.ts",
|
|
@@ -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",
|
|
@@ -155,7 +163,7 @@
|
|
|
155
163
|
"eslint-plugin-regexp": "^3.3.1",
|
|
156
164
|
"eslint-plugin-security": "^4.2.0",
|
|
157
165
|
"eslint-plugin-toml": "^1.5.0",
|
|
158
|
-
"eslint-plugin-unicorn": "^
|
|
166
|
+
"eslint-plugin-unicorn": "^79.0.0",
|
|
159
167
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
160
168
|
"eslint-plugin-yml": "^3.9.0",
|
|
161
169
|
"eslint-processor-vue-blocks": "^2.0.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.8",
|
|
171
179
|
"@eslint/compat": "^2.1.1",
|
|
172
180
|
"@eslint/config-inspector": "^3.5.0",
|
|
173
|
-
"@moso/eslint-plugin": "3.
|
|
174
|
-
"@next/eslint-plugin-next": "^16.4.
|
|
181
|
+
"@moso/eslint-plugin": "3.6.2",
|
|
182
|
+
"@next/eslint-plugin-next": "^16.4.3",
|
|
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"
|