utils/ts_config/test/expected.js
Krzysztof kuhy Rudnicki ba7ea0926f
Some checks failed
dependency freshness / dependencies on newest stable (push) Has been cancelled
file length / file-length (push) Has been cancelled
md-naming / markdown naming convention (push) Has been cancelled
palette drift / palette (push) Has been cancelled
shared gate tests / gate unit tests (push) Has been cancelled
ts_config tests / test (push) Has been cancelled
ts_core tests / test (push) Has been cancelled
web_ui tests / test (push) Has been cancelled
ts_config 0.1.2: React-layer carve-outs for JSX arrow returns and *Ref names, knip base trimmed, fromBase64 off
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
2026-09-16 22:53:21 +02:00

30 lines
1.2 KiB
JavaScript

// One deliberate violation per rule family in test/fixture, and the rule id
// that must catch it. A rule missing from this table is a rule the preset
// does not prove; a fixture file missing from it is a plant nobody checks.
export const EXPECTED = {
"e2e/home.spec.ts": [
"playwright/missing-playwright-await",
"playwright/no-conditional-in-test",
],
"src/components/button.tsx": [
"jsx-a11y/alt-text",
"jsx-a11y/click-events-have-key-events",
"react-hooks/set-state-in-effect",
"react-you-might-not-need-an-effect/no-derived-state",
],
"src/design-system/theme.ts": ["boundaries/dependencies"],
"src/helper.test.ts": ["vitest/expect-expect", "vitest/no-focused-tests"],
"src/pages/home.tsx": ["boundaries/dependencies"],
"src/router/routes.ts": ["boundaries/dependencies"],
"src/services/api.ts": [
"@typescript-eslint/no-explicit-any",
"@typescript-eslint/no-non-null-assertion",
"boundaries/dependencies",
"no-restricted-imports",
],
"src/Wrong_Name.ts": ["unicorn/filename-case"],
};
/** Files that must lint clean: proves the presets do not fire on good code. */
export const CLEAN = ["src/components/item-list.tsx", "src/mocks/user.ts", "src/utils/helper.ts"];