Skip to content

Commit 5cb77ee

Browse files
committed
chore(lint): add fleet-canonical oxlint overrides block
vscode's .config/oxlintrc.json predated the fleet-canonical `overrides` block (present in socket-wheelhouse template/.config/oxlintrc.json) that relaxes infra-inappropriate rules in scripts/test/config dirs: export-top-level-functions, no-dynamic-import-outside-bundle, prefer-function-declaration, sort-source-methods, no-default-export, etc. for **/scripts/**, **/test/**, **/.config/**, **/.git-hooks/**, **/.github/**, plus no-unused-vars off for TS. Brings vscode to parity so reference/runner code isn't held to src/ rules it doesn't fit. Assisted-by: Claude Code:opus-4-7
1 parent 9919ee2 commit 5cb77ee

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

.config/oxlintrc.json

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,35 @@
119119
"unicorn/prefer-node-protocol": "error",
120120
"unicorn/prefer-spread": "off"
121121
},
122+
"overrides": [
123+
{
124+
"files": [
125+
"**/scripts/**",
126+
"**/test/**",
127+
"**/tests/**",
128+
"**/.config/**",
129+
"**/.git-hooks/**",
130+
"**/.github/**"
131+
],
132+
"rules": {
133+
"socket/export-top-level-functions": "off",
134+
"socket/inclusive-language": "off",
135+
"socket/no-default-export": "off",
136+
"socket/no-dynamic-import-outside-bundle": "off",
137+
"socket/no-npx-dlx": "off",
138+
"socket/no-placeholders": "off",
139+
"socket/no-status-emoji": "off",
140+
"socket/prefer-function-declaration": "off",
141+
"socket/sort-source-methods": "off"
142+
}
143+
},
144+
{
145+
"files": ["**/*.ts", "**/*.tsx", "**/*.mts", "**/*.cts"],
146+
"rules": {
147+
"eslint/no-unused-vars": "off"
148+
}
149+
}
150+
],
122151
"ignorePatterns": [
123152
"**/.cache",
124153
"**/.claude",

0 commit comments

Comments
 (0)