Skip to content

Commit 48ab372

Browse files
committed
fix(lint): ignore the stale .config/fleet/oxlint-plugin tree
The active plugin migrated to the one-dir-per-rule tree at .config/oxlint-plugin/; a pre-migration flat tree lingers at .config/fleet/oxlint-plugin/ whose rule sources + test fixtures contain the bad patterns each rule detects by design, so linting them self-flags (212 false positives). Ignore it via the repo overlay until the upstream migration removes the stale tree.
1 parent 60e1751 commit 48ab372

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.config/repo/oxlint.config.mts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
import { config } from '../fleet/oxlint.config.mts'
1313

1414
export default config({
15+
// The active plugin is the one-dir-per-rule tree at `.config/oxlint-plugin/`
16+
// (cascading in). A pre-migration flat tree still lingers at
17+
// `.config/fleet/oxlint-plugin/` — its rule sources + test fixtures contain
18+
// the bad patterns each rule detects by design, so linting them self-flags.
19+
// Ignore it until the upstream migration removes the stale tree (the fleet
20+
// factory already ignores `**/.config/oxlint-plugin/**`).
21+
ignorePatterns: ['**/.config/fleet/oxlint-plugin/**'],
1522
jsPlugins: ['./oxlint-plugin/index.mts'],
1623
rules: {
1724
'socket-repo/no-inline-lazy-node-getter': 'error',

0 commit comments

Comments
 (0)