@hublo/sentinel 1.6.0-alpha.3 → 1.6.0-alpha.5

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.
@@ -12,10 +12,10 @@ import {
12
12
  presetNotInstalledYet,
13
13
  registerAdapters,
14
14
  resolve
15
- } from "../chunk-C65PSQ2M.js";
15
+ } from "../chunk-RZJWYVVG.js";
16
16
  import {
17
17
  resolveContext
18
- } from "../chunk-4DIJRIKJ.js";
18
+ } from "../chunk-L3TOPT5G.js";
19
19
  import {
20
20
  ensureWorkspacePrep,
21
21
  findWorkspaceRoot,
@@ -584,7 +584,7 @@ async function runValidate(ctx) {
584
584
  );
585
585
  }
586
586
  if (!ctx.targets.includes("test")) return 1;
587
- const { validateModuleTests } = await import("../validate-BQBUGZS7.js");
587
+ const { validateModuleTests } = await import("../validate-LJHUF3OQ.js");
588
588
  const outcomes = modules.flatMap(
589
589
  (module) => validateModuleTests(module.name, module.root)
590
590
  );
@@ -8977,14 +8977,17 @@ var shared_default = {
8977
8977
  allowTernary: false
8978
8978
  }
8979
8979
  ],
8980
- "typescript/no-unused-vars": [
8981
- "error",
8982
- {
8983
- argsIgnorePattern: "^_",
8984
- caughtErrors: "none",
8985
- ignoreRestSiblings: true
8986
- }
8987
- ],
8980
+ "typescript/no-unused-vars": {
8981
+ severity: "warn",
8982
+ reason: "one rule and one set of options in every preset since 1.6.0, held at warn for one release so a module that only bumps the version stays green: the findings that predate it are deleted by the adopting repo's sweep, and the rule becomes an error in 1.7.0, once that debt is zero. Until then the debt stays visible and countable via `--run --lint --json` and `--inspect`.",
8983
+ options: [
8984
+ {
8985
+ argsIgnorePattern: "^_",
8986
+ caughtErrors: "none",
8987
+ ignoreRestSiblings: true
8988
+ }
8989
+ ]
8990
+ },
8988
8991
  "typescript/no-wrapper-object-types": "error",
8989
8992
  "typescript/prefer-as-const": "error",
8990
8993
  "typescript/prefer-namespace-keyword": "error",
@@ -69,7 +69,7 @@ import {
69
69
  uncoveredFor,
70
70
  walk,
71
71
  writtenFileFormatter
72
- } from "./chunk-4DIJRIKJ.js";
72
+ } from "./chunk-L3TOPT5G.js";
73
73
  import {
74
74
  DEFAULT_MAX_DIAGNOSTICS,
75
75
  WORKSPACE_ROOT_MARKER,
@@ -5389,10 +5389,10 @@ var metricsHelp = {
5389
5389
  unusedImports: {
5390
5390
  label: "Unused imports",
5391
5391
  what: "Imported names the importing file never uses.",
5392
- read: "Mostly a lint concern, and it is here because for front applications the linter is not asking. Treat a high count as a lint gap rather than as dead code.",
5393
- caveat: "\u26A0\uFE0F 85% of these findings, measured over every module scanned on this pass, are `import React from 'react'`, which the modern JSX transform makes unnecessary and the classic one requires, so whether it is removable depends on the module's `jsx` setting and not on this count. Worse for acting on it line by line: `import React, { useState } from 'react'` is reported with the name `React`, and deleting the line takes `useState` with it. It overlaps `typescript/no-unused-vars`, which this repository's `nest`, `react-lib`, `svelte` and `tools` lint presets enable and its `react` preset turns off, which is the only reason the figure is not redundant for front applications.",
5392
+ read: "Mostly a lint concern: since 1.6.0 every lint preset reports these as errors, so on a module that adopted the lint role this figure repeats what lint already says. It matters for modules that have not adopted it yet.",
5393
+ caveat: "\u26A0\uFE0F 85% of these findings, measured over every module scanned on this pass, are `import React from 'react'`, which the modern JSX transform makes unnecessary and the classic one requires, so whether it is removable depends on the module's `jsx` setting and not on this count. Worse for acting on it line by line: `import React, { useState } from 'react'` is reported with the name `React`, and deleting the line takes `useState` with it. It overlaps `typescript/no-unused-vars`, which every lint preset enables as an error since 1.6.0.",
5394
5394
  fix: "Delete the import. The lint role does this for you once the module adopts it, so a number here on an adopted module is a bug worth reporting.",
5395
- source: "jscpd dead-code findings of category `unused-import`; the 85% and the preset states were measured on this repository's lint presets and the day's scans."
5395
+ source: "jscpd dead-code findings of category `unused-import`; the 85% was measured on the day's scans."
5396
5396
  },
5397
5397
  duplicatedLinesPercentTests: {
5398
5398
  label: "Duplicated lines (tests)",
package/dist/index.js CHANGED
@@ -6,10 +6,10 @@ import {
6
6
  registerAdapters,
7
7
  resolve,
8
8
  setDefaultRunner
9
- } from "./chunk-C65PSQ2M.js";
9
+ } from "./chunk-RZJWYVVG.js";
10
10
  import {
11
11
  BaseAdapter
12
- } from "./chunk-4DIJRIKJ.js";
12
+ } from "./chunk-L3TOPT5G.js";
13
13
  import "./chunk-ZNANJEMK.js";
14
14
  import "./chunk-7E6YTTAK.js";
15
15
  import "./chunk-4EIY7TTR.js";
@@ -7,7 +7,7 @@ import {
7
7
  readTestAdoption,
8
8
  resolveVitest,
9
9
  suiteOf
10
- } from "./chunk-4DIJRIKJ.js";
10
+ } from "./chunk-L3TOPT5G.js";
11
11
  import "./chunk-ZNANJEMK.js";
12
12
  import "./chunk-O7REVMOC.js";
13
13
  import "./chunk-QXFCZON7.js";
package/lint/nest.json CHANGED
@@ -50,7 +50,7 @@
50
50
  }
51
51
  ],
52
52
  "typescript/no-unused-vars": [
53
- "error",
53
+ "warn",
54
54
  {
55
55
  "argsIgnorePattern": "^_",
56
56
  "caughtErrors": "none",
package/lint/node.json CHANGED
@@ -46,7 +46,7 @@
46
46
  }
47
47
  ],
48
48
  "typescript/no-unused-vars": [
49
- "error",
49
+ "warn",
50
50
  {
51
51
  "argsIgnorePattern": "^_",
52
52
  "caughtErrors": "none",
@@ -51,7 +51,7 @@
51
51
  }
52
52
  ],
53
53
  "typescript/no-unused-vars": [
54
- "error",
54
+ "warn",
55
55
  {
56
56
  "argsIgnorePattern": "^_",
57
57
  "caughtErrors": "none",
package/lint/react.json CHANGED
@@ -51,7 +51,7 @@
51
51
  }
52
52
  ],
53
53
  "typescript/no-unused-vars": [
54
- "error",
54
+ "warn",
55
55
  {
56
56
  "argsIgnorePattern": "^_",
57
57
  "caughtErrors": "none",
package/lint/svelte.json CHANGED
@@ -45,7 +45,7 @@
45
45
  }
46
46
  ],
47
47
  "typescript/no-unused-vars": [
48
- "error",
48
+ "warn",
49
49
  {
50
50
  "argsIgnorePattern": "^_",
51
51
  "caughtErrors": "none",
package/lint/tools.json CHANGED
@@ -48,7 +48,7 @@
48
48
  }
49
49
  ],
50
50
  "typescript/no-unused-vars": [
51
- "error",
51
+ "warn",
52
52
  {
53
53
  "argsIgnorePattern": "^_",
54
54
  "caughtErrors": "none",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hublo/sentinel",
3
- "version": "1.6.0-alpha.3",
3
+ "version": "1.6.0-alpha.5",
4
4
  "description": "One CLI that guards code health across Hublo repos: shared lint/typescript/build/test presets, static & dynamic analysis, and architecture checks.",
5
5
  "type": "module",
6
6
  "license": "MIT",