@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.
- package/dist/bin/sentinel.js +3 -3
- package/dist/{chunk-4DIJRIKJ.js → chunk-L3TOPT5G.js} +11 -8
- package/dist/{chunk-C65PSQ2M.js → chunk-RZJWYVVG.js} +4 -4
- package/dist/index.js +2 -2
- package/dist/{validate-BQBUGZS7.js → validate-LJHUF3OQ.js} +1 -1
- package/lint/nest.json +1 -1
- package/lint/node.json +1 -1
- package/lint/react-lib.json +1 -1
- package/lint/react.json +1 -1
- package/lint/svelte.json +1 -1
- package/lint/tools.json +1 -1
- package/package.json +1 -1
package/dist/bin/sentinel.js
CHANGED
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
presetNotInstalledYet,
|
|
13
13
|
registerAdapters,
|
|
14
14
|
resolve
|
|
15
|
-
} from "../chunk-
|
|
15
|
+
} from "../chunk-RZJWYVVG.js";
|
|
16
16
|
import {
|
|
17
17
|
resolveContext
|
|
18
|
-
} from "../chunk-
|
|
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-
|
|
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
|
-
"
|
|
8982
|
-
|
|
8983
|
-
|
|
8984
|
-
|
|
8985
|
-
|
|
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-
|
|
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
|
|
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
|
|
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%
|
|
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-
|
|
9
|
+
} from "./chunk-RZJWYVVG.js";
|
|
10
10
|
import {
|
|
11
11
|
BaseAdapter
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-L3TOPT5G.js";
|
|
13
13
|
import "./chunk-ZNANJEMK.js";
|
|
14
14
|
import "./chunk-7E6YTTAK.js";
|
|
15
15
|
import "./chunk-4EIY7TTR.js";
|
package/lint/nest.json
CHANGED
package/lint/node.json
CHANGED
package/lint/react-lib.json
CHANGED
package/lint/react.json
CHANGED
package/lint/svelte.json
CHANGED
package/lint/tools.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hublo/sentinel",
|
|
3
|
-
"version": "1.6.0-alpha.
|
|
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",
|