@book000/eslint-config 1.16.123 → 1.16.125
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/AGENTS.md +2 -2
- package/package.json +2 -2
- package/test.mjs +3 -5
package/AGENTS.md
CHANGED
|
@@ -26,9 +26,9 @@ pnpm install
|
|
|
26
26
|
pnpm test
|
|
27
27
|
```
|
|
28
28
|
|
|
29
|
-
`pnpm test` runs `
|
|
29
|
+
`pnpm test` runs `node --experimental-vm-modules test.mjs`.
|
|
30
30
|
It creates `src/`, `tsconfig.json` and `eslint.config.mjs` in the repository root, lints one temp file per test case in a single ESLint process, and removes the temp files, `tsconfig.json` and `eslint.config.mjs` afterwards (an empty `src/` is left behind).
|
|
31
|
-
The script exits with
|
|
31
|
+
The script exits with a non-zero code when any case fails, and the summary prints the `Failed:` count (failed cases are marked with `❌`).
|
|
32
32
|
There is no separate lint or build step.
|
|
33
33
|
|
|
34
34
|
## Structure of `index.mjs`
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@book000/eslint-config",
|
|
3
|
-
"version": "1.16.
|
|
3
|
+
"version": "1.16.125",
|
|
4
4
|
"description": "ESLint config",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint-config"
|
|
@@ -28,6 +28,6 @@
|
|
|
28
28
|
"eslint": "10.14.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
|
-
"test": "
|
|
31
|
+
"test": "node --experimental-vm-modules test.mjs"
|
|
32
32
|
}
|
|
33
33
|
}
|
package/test.mjs
CHANGED
|
@@ -469,11 +469,9 @@ async function main() {
|
|
|
469
469
|
fs.unlinkSync(tsconfigPath);
|
|
470
470
|
console.log("\n--- Summary ---");
|
|
471
471
|
console.log(`Passed: ${pass} / Failed: ${fail} / Total: ${testCases.length}`);
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
await main();
|
|
476
|
-
process.exit(0);
|
|
472
|
+
if (fail > 0) {
|
|
473
|
+
process.exitCode = 1;
|
|
474
|
+
}
|
|
477
475
|
}
|
|
478
476
|
|
|
479
477
|
main().catch((e) => {
|