summaryrefslogtreecommitdiffhomepage
path: root/.oxlintrc.json
diff options
context:
space:
mode:
authorKit Langton <[email protected]>2026-04-15 23:50:50 -0400
committerGitHub <[email protected]>2026-04-16 03:50:50 +0000
commitbd2900483150d690acdc53acb37e98eda7bb7fe5 (patch)
treee65c81f8f2bf70fcf6eb9a4a41732da8933f9f9f /.oxlintrc.json
parent8aa0f9fe9515ba0234ab6a0a58c868068913bb05 (diff)
downloadopencode-bd2900483150d690acdc53acb37e98eda7bb7fe5.tar.gz
opencode-bd2900483150d690acdc53acb37e98eda7bb7fe5.zip
feat: enable type-aware no-misused-spread rule, fix 8 violations (#22749)
Diffstat (limited to '.oxlintrc.json')
-rw-r--r--.oxlintrc.json9
1 files changed, 7 insertions, 2 deletions
diff --git a/.oxlintrc.json b/.oxlintrc.json
index a0b620649..f1ca1ff46 100644
--- a/.oxlintrc.json
+++ b/.oxlintrc.json
@@ -37,10 +37,15 @@
"no-new": "off",
// Type-aware: catch unhandled promises
- "typescript/no-floating-promises": "warn"
+ "typescript/no-floating-promises": "warn",
+ // Warn when spreading non-plain objects (Headers, class instances, etc.)
+ "typescript/no-misused-spread": "warn"
},
"options": {
"typeAware": true
},
- "ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts"]
+ "options": {
+ "typeAware": true
+ },
+ "ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts", "**/sdk.gen.ts"]
}