|
1 | 1 | { |
2 | | - "$schema": "./node_modules/oxlint/configuration_schema.json", |
3 | | - |
4 | | - // Keep the built-in default plugin set explicit so monorepo lint behavior |
5 | | - // does not drift when oxlint changes its defaults. |
6 | | - "plugins": ["typescript", "oxc", "unicorn"], |
7 | | - |
8 | | - "categories": { |
9 | | - "correctness": "warn", |
10 | | - }, |
11 | | - |
12 | | - "ignorePatterns": [ |
13 | | - "**/node_modules/**", |
14 | | - "**/.turbo/**", |
15 | | - "**/dist/**", |
16 | | - "**/coverage/**", |
17 | | - "**/.next/**", |
18 | | - "**/.mint/**", |
19 | | - ], |
20 | | - |
21 | | - "settings": { |
22 | | - "executorMonorepo": { |
23 | | - "packageScopes": ["@executor/"], |
24 | | - }, |
25 | | - }, |
26 | | - |
27 | | - "jsPlugins": [ |
28 | | - { |
29 | | - "name": "executor-monorepo", |
30 | | - "specifier": "./tools/oxlint/plugin.mjs", |
31 | | - }, |
32 | | - ], |
33 | | - |
34 | 2 | "rules": { |
35 | | - // This repo uses Effect.gen heavily. The underlying generator syntax is an |
36 | | - // implementation detail, so "no yield" is not a useful signal here. |
37 | | - "require-yield": "off", |
38 | | - |
39 | | - "no-unused-vars": "warn", |
40 | | - |
41 | | - // Monorepo-specific rules. |
42 | | - "executor-monorepo/no-async-effect-vitest-tests": "error", |
43 | | - "executor-monorepo/no-cross-workspace-relative-imports": "error", |
44 | | - "executor-monorepo/no-direct-effect-tag-read": "error", |
45 | | - "executor-monorepo/no-effect-env-any": "error", |
46 | | - "executor-monorepo/no-effect-never-cast": "error", |
47 | | - "executor-monorepo/no-effect-run-in-effect-vitest-tests": "error", |
48 | | - "executor-monorepo/no-manual-httpapi-openapi-bridge": "error", |
49 | | - "executor-monorepo/no-manual-openapi-documents": "error", |
50 | | - "executor-monorepo/no-node-fs-with-effect-imports": "error", |
51 | | - "executor-monorepo/no-raw-effect-fail-errors": "error", |
52 | | - "executor-monorepo/no-yield-effect-fail": "error", |
53 | | - "executor-monorepo/no-workspace-src-imports": "warn", |
54 | | - }, |
55 | | - |
56 | | - "overrides": [ |
57 | | - { |
58 | | - // SDK tests still use relative workspace imports to avoid introducing |
59 | | - // package-graph cycles from test-only dependencies. |
60 | | - "files": [ |
61 | | - "packages/platform/sdk/src/executor.test.ts", |
62 | | - "packages/platform/sdk/src/runtime/executor-runtime.test.ts", |
63 | | - "packages/platform/server/src/index.test.ts", |
64 | | - "packages/clients/react/src/index.test.tsx" |
65 | | - ], |
66 | | - "rules": { |
67 | | - "executor-monorepo/no-cross-workspace-relative-imports": "off" |
68 | | - } |
69 | | - }, |
70 | | - { |
71 | | - // JSON Schema conditionals legitimately use a `then` key. |
72 | | - "files": [ |
73 | | - "packages/platform/control-plane/src/runtime/catalog/source/runtime.ts", |
74 | | - ], |
75 | | - "rules": { |
76 | | - "unicorn/no-thenable": "off", |
77 | | - }, |
78 | | - }, |
79 | | - { |
80 | | - // This stack-integrity check intentionally prefers invariant failures in cleanup. |
81 | | - "files": ["packages/sources/core/src/catalog-json-schema.ts"], |
82 | | - "rules": { |
83 | | - "no-unsafe-finally": "off", |
84 | | - }, |
85 | | - }, |
86 | | - ], |
| 3 | + "typescript/no-explicit-any": "error" |
| 4 | + } |
87 | 5 | } |
0 commit comments