@isentinel/eslint-config 6.0.0-beta.21 → 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 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.21";
12
+ var version = "6.0.0-beta.23";
13
13
  var package_default = {
14
14
  name: "@isentinel/eslint-config",
15
15
  version,
@@ -60,14 +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
- "lint": "concurrently 'oxlint' 'eslint --cache'",
67
- "lint:ci": "concurrently 'oxlint' 'eslint --cache --cache-strategy content'",
68
+ "lint": "isentinel-lint",
68
69
  "oxlint": "oxlint",
69
70
  "prepack": "nr build",
70
- "release": "bumpp",
71
+ "release": "bumpp -r",
71
72
  "stub": "tsdown",
72
73
  "test": "nr gen && vitest run",
73
74
  "test:watch": "vitest",
@@ -127,6 +128,7 @@ var package_default = {
127
128
  "prettier": "catalog:prod",
128
129
  "semver": "catalog:prod",
129
130
  "toml-eslint-parser": "catalog:prod",
131
+ "type-fest": "catalog:prod",
130
132
  "yaml-eslint-parser": "catalog:prod",
131
133
  "yargs": "catalog:prod"
132
134
  },
@@ -162,7 +164,6 @@ var package_default = {
162
164
  "pnpm-workspace-yaml": "catalog:dev",
163
165
  "publint": "catalog:dev",
164
166
  "tsdown": "catalog:dev",
165
- "type-fest": "catalog:dev",
166
167
  "typescript": "catalog:dev",
167
168
  "unplugin-unused": "catalog:dev",
168
169
  "vitest": "catalog:dev"
@@ -192,7 +193,7 @@ var package_default = {
192
193
  "oxlint": { "optional": true },
193
194
  "oxlint-tsgolint": { "optional": true }
194
195
  },
195
- packageManager: "pnpm@11.15.1+sha512.81350b07e53c9538a02f1f2303b4290fa2d7be04e56e2a970c4cc4b417dc761de196edabd49d55c7dc9580db81007c44143e4e3d7e462b3000d23c255122d065",
196
+ packageManager: "pnpm@11.17.0+sha512.cca3cea332ad254bb84145f966d19f4879615210346fc92c79a047f23a0d7b3cca3c3792f0076ba1f1831d277efbcf0a9119b31a9a60eca7fb3d6231f331ef72",
196
197
  engines: { "node": ">=24.12.0" },
197
198
  publishConfig: { "access": "public" }
198
199
  };
@@ -264,7 +265,7 @@ function isStringArray(value) {
264
265
  return Array.isArray(value) && value.every((item) => typeof item === "string");
265
266
  }
266
267
  //#endregion
267
- //#region node_modules/.pnpm/parse-gitignore-ts@1.0.0/node_modules/parse-gitignore-ts/dist/index.mjs
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
268
269
  var isObject = (v) => v !== null && typeof v === "object" && !Array.isArray(v);
269
270
  var INVALID_PATH_CHARS_REGEX = /[<>:"|?*\n\r\t\f\x00-\x1F]/;
270
271
  var GLOBSTAR_REGEX = /(?:^|\/)[*]{2}($|\/)/;
@@ -525,10 +526,10 @@ async function updateEslintFiles(result) {
525
526
  //#region src/cli/constants-generated.ts
526
527
  const versionsMap = {
527
528
  "eslint": "10.7.0",
528
- "eslint-plugin-jest": "29.15.4",
529
- "eslint-plugin-react-jsx": "5.17.2",
530
- "eslint-plugin-react-naming-convention": "5.17.2",
531
- "eslint-plugin-react-x": "5.17.2"
529
+ "eslint-plugin-jest": "29.16.0",
530
+ "eslint-plugin-react-jsx": "5.17.3",
531
+ "eslint-plugin-react-naming-convention": "5.17.3",
532
+ "eslint-plugin-react-x": "5.17.3"
532
533
  };
533
534
  //#endregion
534
535
  //#region src/cli/stages/update-package-json.ts