@jterrazz/typescript 10.1.6 → 10.1.8
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/lib/check-suppressions.js +9 -1
- package/package.json +1 -1
- package/rules/vitest.js +5 -1
|
@@ -91,7 +91,15 @@ function resolveConfig(root, oxlint) {
|
|
|
91
91
|
|
|
92
92
|
let rules;
|
|
93
93
|
try {
|
|
94
|
-
|
|
94
|
+
const resolved = JSON.parse(printed);
|
|
95
|
+
rules = { ...resolved.rules };
|
|
96
|
+
/* A rule armed only in an override — a test-file rule, a layer's
|
|
97
|
+
* `no-restricted-imports` — is live for the files it names. */
|
|
98
|
+
for (const override of resolved.overrides ?? []) {
|
|
99
|
+
for (const [name, level] of Object.entries(override.rules ?? {})) {
|
|
100
|
+
rules[name] ??= level;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
95
103
|
} catch {
|
|
96
104
|
return null;
|
|
97
105
|
}
|
package/package.json
CHANGED
package/rules/vitest.js
CHANGED
|
@@ -11,7 +11,11 @@ import { allOn, fragment, off, on, scoped, unsafeFix } from './_contract.js';
|
|
|
11
11
|
* `exclusive-pairs.test.ts` proves no profile ever arms both.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
/**
|
|
14
|
+
/**
|
|
15
|
+
* Where a vitest rule applies. Nothing outside these globs is a vitest file —
|
|
16
|
+
* a Playwright spec is `*.e2e.ts`, which no glob here names, and that suffix
|
|
17
|
+
* is the convention (docs/07-lint-presets.md, "Estate conventions").
|
|
18
|
+
*/
|
|
15
19
|
export const TEST_FILES = Object.freeze([
|
|
16
20
|
'**/*.{test,spec,test-d,spec-d}.{ts,tsx,js,jsx}',
|
|
17
21
|
'**/specs/**/*.{ts,tsx}',
|