|
1 | 1 | { |
2 | 2 | "$schema": "https://raw.githubusercontent.com/nicolo-ribaudo/oxc-project.github.io/refs/heads/json-schema/src/public/.oxlintrc.schema.json", |
| 3 | + "options": { |
| 4 | + "typeAware": true |
| 5 | + }, |
| 6 | + "categories": { |
| 7 | + "suspicious": "warn" |
| 8 | + }, |
3 | 9 | "rules": { |
| 10 | + "typescript/no-base-to-string": "warn", |
4 | 11 | // Effect uses `function*` with Effect.gen/Effect.fnUntraced that don't always yield |
5 | 12 | "require-yield": "off", |
6 | 13 | // SolidJS uses `let ref: T | undefined` for JSX ref bindings assigned at runtime |
7 | | - "no-unassigned-vars": "off" |
| 14 | + "no-unassigned-vars": "off", |
| 15 | + // SolidJS tracks reactive deps by reading properties inside createEffect |
| 16 | + "no-unused-expressions": "off", |
| 17 | + // Intentional control char matching (ANSI escapes, null byte sanitization) |
| 18 | + "no-control-regex": "off", |
| 19 | + // SST and plugin tools require triple-slash references |
| 20 | + "triple-slash-reference": "off", |
| 21 | + |
| 22 | + // Suspicious category: suppress noisy rules |
| 23 | + // Effect's nested function* closures inherently shadow outer scope |
| 24 | + "no-shadow": "off", |
| 25 | + // Namespace-heavy codebase makes this too noisy |
| 26 | + "unicorn/consistent-function-scoping": "off", |
| 27 | + // Opinionated — .sort()/.reverse() mutation is fine in this codebase |
| 28 | + "unicorn/no-array-sort": "off", |
| 29 | + "unicorn/no-array-reverse": "off", |
| 30 | + // Not relevant — this isn't a DOM event handler codebase |
| 31 | + "unicorn/prefer-add-event-listener": "off", |
| 32 | + // Bundler handles module resolution |
| 33 | + "unicorn/require-module-specifiers": "off", |
| 34 | + // postMessage target origin not relevant for this codebase |
| 35 | + "unicorn/require-post-message-target-origin": "off", |
| 36 | + // Side-effectful constructors are intentional in some places |
| 37 | + "no-new": "off", |
| 38 | + |
| 39 | + // Type-aware: catch unhandled promises |
| 40 | + "typescript/no-floating-promises": "warn", |
| 41 | + // Warn when spreading non-plain objects (Headers, class instances, etc.) |
| 42 | + "typescript/no-misused-spread": "warn" |
| 43 | + }, |
| 44 | + "options": { |
| 45 | + "typeAware": true |
| 46 | + }, |
| 47 | + "options": { |
| 48 | + "typeAware": true |
8 | 49 | }, |
9 | | - "ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts"] |
| 50 | + "ignorePatterns": ["**/node_modules", "**/dist", "**/.build", "**/.sst", "**/*.d.ts", "**/sdk.gen.ts"] |
10 | 51 | } |
0 commit comments