Skip to content

Commit 094ffbc

Browse files
committed
fix(scripts/lint): pass --ignore-path; mark file legitimate over 500 lines
Same fix as socket-sdk-js (commit 9d347d27): without --ignore-path .config/.prettierignore, oxfmt looks for the ignore file in CWD and scans .claude/skills/*.md which the fleet intends to skip. Adding the flag bumped the file from 499 to 501 lines, which tripped socket/max-file-lines (500-line soft cap). Annotate the file with `max-file-lines: legitimate — lint orchestration` per the rule\x27s documented bypass mechanism.
1 parent 0a1490e commit 094ffbc

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/lint.mts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/* max-file-lines: legitimate — lint orchestration (flag parse, file selection, oxlint+oxfmt drivers, staged plumbing). Splitting would scatter the pre-commit/CI entry-point logic across multiple files. */
12
/**
23
* @file Unified lint runner with flag-based configuration. Provides smart
34
* linting that can target affected files or lint everything.
@@ -167,6 +168,8 @@ export async function runLintOnFiles(
167168
'oxfmt',
168169
'-c',
169170
'.config/oxfmtrc.json',
171+
'--ignore-path',
172+
'.config/.prettierignore',
170173
...(fix ? ['--write'] : ['--check']),
171174
...files,
172175
],
@@ -242,6 +245,8 @@ export async function runLintOnAll(options: LintOptions = {}): Promise<number> {
242245
'oxfmt',
243246
'-c',
244247
'.config/oxfmtrc.json',
248+
'--ignore-path',
249+
'.config/.prettierignore',
245250
...(fix ? ['--write'] : ['--check']),
246251
'.',
247252
],

0 commit comments

Comments
 (0)