diff options
| author | Kit Langton <[email protected]> | 2026-04-15 23:50:50 -0400 |
|---|---|---|
| committer | GitHub <[email protected]> | 2026-04-16 03:50:50 +0000 |
| commit | bd2900483150d690acdc53acb37e98eda7bb7fe5 (patch) | |
| tree | e65c81f8f2bf70fcf6eb9a4a41732da8933f9f9f /.oxlintrc.json | |
| parent | 8aa0f9fe9515ba0234ab6a0a58c868068913bb05 (diff) | |
| download | opencode-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.json | 9 |
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"] } |
