@jterrazz/test 18.0.2 → 18.0.3
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/checker.js +4 -3
- package/docs/reference/linting.md +1 -1
- package/package.json +1 -1
package/dist/checker.js
CHANGED
|
@@ -3787,14 +3787,15 @@ function configIn(directory, names) {
|
|
|
3787
3787
|
const name = names.find((candidate) => existsSync(join(directory, candidate)));
|
|
3788
3788
|
return name === void 0 ? void 0 : join(directory, name);
|
|
3789
3789
|
}
|
|
3790
|
-
/** The outermost of each subtree, which covers the ones inside it. */
|
|
3790
|
+
/** The outermost of each subtree, which covers the ones inside it, found as git lists the tree, so a folder git ignores is never entered and a config inside it never loaded. */
|
|
3791
3791
|
function nestedConfigDirectories(root) {
|
|
3792
3792
|
const found = [];
|
|
3793
3793
|
const walk = (directory) => {
|
|
3794
|
-
for (const entry of
|
|
3794
|
+
for (const entry of treeEntries(directory)) {
|
|
3795
3795
|
if (!entry.isDirectory() || UNWALKED.has(entry.name)) continue;
|
|
3796
3796
|
const path = join(directory, entry.name);
|
|
3797
|
-
|
|
3797
|
+
const names = treeNames(path);
|
|
3798
|
+
if (NESTED_CONFIG_NAMES.some((name) => names.includes(name))) found.push(relative(root, path));
|
|
3798
3799
|
else walk(path);
|
|
3799
3800
|
}
|
|
3800
3801
|
};
|
|
@@ -417,7 +417,7 @@ This package records and judges its consumers' debt. The family keeps one tracke
|
|
|
417
417
|
|
|
418
418
|
- **It re-records both falls** (lowering an entry or dropping it) before it judges.
|
|
419
419
|
- **It runs the plugin's own autofixes first**, after its own rewrites and movers: the project's oxlint, under a wrapper of its root config that arms the `jterrazz/*` rules alone, in that config and in every config it extends: a plugin armed through `extends` keeps its fixes, and a JSON config, `.jsonc` or extended, is read as oxlint reads it, comments and trailing commas allowed. So no other rulebook's fixer writes a byte, and the ratchets count the checker's findings and the plugin's diagnostics over the one tree they leave: one `typescript fix` settles a diagnostic its fix writes (`no-repeated-chain-setting`'s view, `one-describe-per-file`'s describe, `expected-constant-shared`'s shared expectation).
|
|
420
|
-
- **A nested oxlint config gets a run of its own**, under the same wrapper of ITS config: a config handed with `-c` turns oxlint's nested discovery off, so the root's run leaves the subtree alone rather than write where another config governs, and the subtree's run fixes it by the config the ratchet's count judges it by.
|
|
420
|
+
- **A nested oxlint config gets a run of its own**, under the same wrapper of ITS config: a config handed with `-c` turns oxlint's nested discovery off, so the root's run leaves the subtree alone rather than write where another config governs, and the subtree's run fixes it by the config the ratchet's count judges it by. The configs are found as `typescript check` lists the tree, through git: a folder git ignores is never entered, so a config below it, a clone under a sealed workbench, is never loaded.
|
|
421
421
|
- **A config oxlint could not load under the wrapper stops `typescript fix`**, naming it: oxlint exits 1 for it as for diagnostics left, and a pass that read it as the latter would have fixed nothing and said nothing.
|
|
422
422
|
|
|
423
423
|
#### Which run owns the verdict
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jterrazz/test",
|
|
3
|
-
"version": "18.0.
|
|
3
|
+
"version": "18.0.3",
|
|
4
4
|
"description": "Declarative testing framework for HTTP APIs, CLIs, background jobs, websites, mobile apps, rendered components and the rules a project ships: one entry point, real infrastructure and a real browser, golden-file assertions, plus an oxlint convention plugin.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"api-testing",
|