Skip to content

Commit 094bfde

Browse files
antonisclaude
andcommitted
fix(core): Restore utils.ts disable and fix lint script to reject all errors
- Restore oxlint-disable for no-unsafe-member-access in plugin/utils.ts (tsgolint false positive: types `fs` as `error` with SUPPRESS_DIAGNOSTICS) - Fix lint:oxlint grep pattern from [01] to 0 so it no longer silently accepts 1 genuine lint error Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent c154b11 commit 094bfde

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

packages/core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"fix:oxlint": "OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint --type-aware --tsconfig tsconfig.lint.json --fix",
4242
"fix:prettier": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --write \"{src,test,scripts,plugin/src}/**/**.ts\"",
4343
"lint": "npx run-s lint:oxlint lint:prettier",
44-
"lint:oxlint": "sh -c 'OUT=$(OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint --type-aware --tsconfig tsconfig.lint.json --deny-warnings 2>&1); echo \"$OUT\"; echo \"$OUT\" | grep -qE \"Found 0 warnings and [01] error\"'",
44+
"lint:oxlint": "sh -c 'OUT=$(OXLINT_TSGOLINT_DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS=true oxlint --type-aware --tsconfig tsconfig.lint.json --deny-warnings 2>&1); echo \"$OUT\"; echo \"$OUT\" | grep -qE \"Found 0 warnings and 0 errors\"'",
4545
"lint:prettier": "prettier --config ../../.prettierrc.json --ignore-path ../../.prettierignore --check \"{src,test,scripts,plugin/src}/**/**.ts\""
4646
},
4747
"bin": {

packages/core/plugin/src/utils.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
// tsgolint incorrectly types `fs` as `error` — false positive with DANGEROUSLY_SUPPRESS_PROGRAM_DIAGNOSTICS
2+
/* oxlint-disable typescript-eslint(no-unsafe-member-access) */
13
import * as fs from 'fs';
24
import * as path from 'path';
35
import { warnOnce } from './logger';

0 commit comments

Comments
 (0)