refactor: tighten types and reuse instrument UI
This commit is contained in:
@@ -24,6 +24,21 @@ test("ESLint enforces the frontend profile and excludes generated artifacts", as
|
||||
const eslint = new ESLint();
|
||||
|
||||
for (const [filePath, code, rule] of [
|
||||
[
|
||||
"src/shared/api/problem-details.ts",
|
||||
"export function read(value: string) { return value?.trim(); }",
|
||||
"@typescript-eslint/no-unnecessary-condition",
|
||||
],
|
||||
[
|
||||
"src/shared/api/problem-details.ts",
|
||||
"export function read(value?: string) { return value!.trim(); }",
|
||||
"@typescript-eslint/no-non-null-assertion",
|
||||
],
|
||||
[
|
||||
"src/shared/api/problem-details.ts",
|
||||
"import { ReactNode } from \"react\"; export type Content = ReactNode;",
|
||||
"@typescript-eslint/consistent-type-imports",
|
||||
],
|
||||
[
|
||||
"src/shared/api/problem-details.ts",
|
||||
"export function run() { Promise.resolve(); }",
|
||||
|
||||
Reference in New Issue
Block a user