@isentinel/eslint-config 6.0.0-beta.22 → 6.0.0-beta.23
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 +31 -0
- package/dist/cli.mjs +9 -7
- package/dist/index.d.mts +167 -98
- package/dist/index.mjs +83 -39
- package/dist/lint-cli.mjs +6 -6
- package/dist/oxlint.d.mts +229 -165
- package/dist/oxlint.mjs +166 -5
- package/package.json +9 -7
package/README.md
CHANGED
|
@@ -864,6 +864,37 @@ mise use hk pkl # or see https://hk.jdx.dev for other install methods
|
|
|
864
864
|
hk install
|
|
865
865
|
```
|
|
866
866
|
|
|
867
|
+
### pnpm's global virtual store
|
|
868
|
+
|
|
869
|
+
Only relevant if you have set
|
|
870
|
+
[`enableGlobalVirtualStore: true`](https://pnpm.io/global-virtual-store).
|
|
871
|
+
Otherwise pnpm's hoisting hides the problem and there is nothing to do.
|
|
872
|
+
|
|
873
|
+
With the setting on, a package's real location moves out of your project, so
|
|
874
|
+
TypeScript resolves each dependency's imports from its own declared dependencies
|
|
875
|
+
alone. Several packages in this preset's tree import types they never declare —
|
|
876
|
+
`eslint-flat-config-utils` imports from `eslint` without declaring it at all.
|
|
877
|
+
`skipLibCheck` hides the resulting `TS2307`, but the type still degrades to
|
|
878
|
+
`any`, which surfaces as misleading reports elsewhere:
|
|
879
|
+
|
|
880
|
+
```text
|
|
881
|
+
typescript(no-unsafe-argument): Unsafe argument of type Linter.Config[]
|
|
882
|
+
assigned to a parameter of type TypedFlatConfigItem[]
|
|
883
|
+
```
|
|
884
|
+
|
|
885
|
+
Since `isentinel()` returns a `FlatConfigComposer` from that package, this hits
|
|
886
|
+
your `eslint.config.ts` directly. Add the companion pnpm plugin, which declares
|
|
887
|
+
the missing imports for you:
|
|
888
|
+
|
|
889
|
+
```bash
|
|
890
|
+
pnpm add --config @isentinel/pnpm-plugin-eslint-config
|
|
891
|
+
```
|
|
892
|
+
|
|
893
|
+
pnpm auto-loads any config dependency whose name matches its plugin pattern, so
|
|
894
|
+
there is nothing to configure. Use the CLI rather than hand-editing
|
|
895
|
+
`pnpm-workspace.yaml`: config dependencies are pinned to an exact version and
|
|
896
|
+
verified against an integrity hash that `pnpm add --config` records for you.
|
|
897
|
+
|
|
867
898
|
## View what rules are enabled
|
|
868
899
|
|
|
869
900
|
There is a visual tool to help you view what rules are enabled in your project
|
package/dist/cli.mjs
CHANGED
|
@@ -9,7 +9,7 @@ import path from "node:path";
|
|
|
9
9
|
import { existsSync, readFileSync } from "fs";
|
|
10
10
|
import { execSync } from "node:child_process";
|
|
11
11
|
//#region package.json
|
|
12
|
-
var version = "6.0.0-beta.
|
|
12
|
+
var version = "6.0.0-beta.23";
|
|
13
13
|
var package_default = {
|
|
14
14
|
name: "@isentinel/eslint-config",
|
|
15
15
|
version,
|
|
@@ -60,13 +60,15 @@ var package_default = {
|
|
|
60
60
|
scripts: {
|
|
61
61
|
"build": "nr gen && tsdown && node scripts/check-dist.ts",
|
|
62
62
|
"build:inspector": "pnpm build && pnpm dlx @eslint/config-inspector build --config eslint-inspector.config.ts --out-dir ./.eslint-config-inspector",
|
|
63
|
+
"check:extensions": "node scripts/check-package-extensions.ts && node scripts/gen-package-extensions.ts --check",
|
|
64
|
+
"check:published": "node scripts/check-published-extensions.ts",
|
|
63
65
|
"dev": "npx @eslint/config-inspector --config eslint-inspector.config.ts",
|
|
64
|
-
"gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts",
|
|
66
|
+
"gen": "node scripts/typegen.ts && node scripts/typegen-oxlint.ts && node scripts/typegen-defaults.ts && node scripts/typegen-defaults-oxlint.ts && node scripts/versiongen.ts && node scripts/gen-package-extensions.ts",
|
|
65
67
|
"postgen": "echo 'Generation complete!'",
|
|
66
68
|
"lint": "isentinel-lint",
|
|
67
69
|
"oxlint": "oxlint",
|
|
68
70
|
"prepack": "nr build",
|
|
69
|
-
"release": "bumpp",
|
|
71
|
+
"release": "bumpp -r",
|
|
70
72
|
"stub": "tsdown",
|
|
71
73
|
"test": "nr gen && vitest run",
|
|
72
74
|
"test:watch": "vitest",
|
|
@@ -126,6 +128,7 @@ var package_default = {
|
|
|
126
128
|
"prettier": "catalog:prod",
|
|
127
129
|
"semver": "catalog:prod",
|
|
128
130
|
"toml-eslint-parser": "catalog:prod",
|
|
131
|
+
"type-fest": "catalog:prod",
|
|
129
132
|
"yaml-eslint-parser": "catalog:prod",
|
|
130
133
|
"yargs": "catalog:prod"
|
|
131
134
|
},
|
|
@@ -161,7 +164,6 @@ var package_default = {
|
|
|
161
164
|
"pnpm-workspace-yaml": "catalog:dev",
|
|
162
165
|
"publint": "catalog:dev",
|
|
163
166
|
"tsdown": "catalog:dev",
|
|
164
|
-
"type-fest": "catalog:dev",
|
|
165
167
|
"typescript": "catalog:dev",
|
|
166
168
|
"unplugin-unused": "catalog:dev",
|
|
167
169
|
"vitest": "catalog:dev"
|
|
@@ -191,7 +193,7 @@ var package_default = {
|
|
|
191
193
|
"oxlint": { "optional": true },
|
|
192
194
|
"oxlint-tsgolint": { "optional": true }
|
|
193
195
|
},
|
|
194
|
-
packageManager: "pnpm@11.
|
|
196
|
+
packageManager: "pnpm@11.17.0+sha512.cca3cea332ad254bb84145f966d19f4879615210346fc92c79a047f23a0d7b3cca3c3792f0076ba1f1831d277efbcf0a9119b31a9a60eca7fb3d6231f331ef72",
|
|
195
197
|
engines: { "node": ">=24.12.0" },
|
|
196
198
|
publishConfig: { "access": "public" }
|
|
197
199
|
};
|
|
@@ -263,7 +265,7 @@ function isStringArray(value) {
|
|
|
263
265
|
return Array.isArray(value) && value.every((item) => typeof item === "string");
|
|
264
266
|
}
|
|
265
267
|
//#endregion
|
|
266
|
-
//#region node_modules/.
|
|
268
|
+
//#region ../../../setup-pnpm/node_modules/.bin/store/v11/links/@/parse-gitignore-ts/1.0.0/0cdd402c09c3520e4b8d62a0e9eaf59ef70b71773d70a71b070a2cf3609765b8/node_modules/parse-gitignore-ts/dist/index.mjs
|
|
267
269
|
var isObject = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
|
|
268
270
|
var INVALID_PATH_CHARS_REGEX = /[<>:"|?*\n\r\t\f\x00-\x1F]/;
|
|
269
271
|
var GLOBSTAR_REGEX = /(?:^|\/)[*]{2}($|\/)/;
|
|
@@ -524,7 +526,7 @@ async function updateEslintFiles(result) {
|
|
|
524
526
|
//#region src/cli/constants-generated.ts
|
|
525
527
|
const versionsMap = {
|
|
526
528
|
"eslint": "10.7.0",
|
|
527
|
-
"eslint-plugin-jest": "29.
|
|
529
|
+
"eslint-plugin-jest": "29.16.0",
|
|
528
530
|
"eslint-plugin-react-jsx": "5.17.3",
|
|
529
531
|
"eslint-plugin-react-naming-convention": "5.17.3",
|
|
530
532
|
"eslint-plugin-react-x": "5.17.3"
|