-
Notifications
You must be signed in to change notification settings - Fork 526
Expand file tree
/
Copy path.oxlintrc.json
More file actions
48 lines (48 loc) · 1.57 KB
/
Copy path.oxlintrc.json
File metadata and controls
48 lines (48 loc) · 1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"options": {
"typeAware": true,
"denyWarnings": true
},
"ignorePatterns": [
".repos",
"apps/cli-go",
// Generated by `supabase gen types` (see `gen:feedback-types` in apps/cli).
"apps/cli/src/shared/feedback/database.types.ts",
"apps/cli-e2e/fixtures",
"**/testdata",
"**/dist",
"**/coverage",
"**/.next",
"**/.source"
],
"rules": {
// `new State({ ...state, ... })` is the idiomatic Data.Class copy-with-update pattern.
"typescript/no-misused-spread": "off",
// Effect combinators like `.pipe(semaphore.withPermit)` are passed as references by
// design and don't rely on `this`.
"typescript/unbound-method": "off",
// Too strict for CLI string building; `no-base-to-string` still guards
// against `[object Object]` interpolation bugs.
"typescript/restrict-template-expressions": "off"
},
"overrides": [
{
// The CLI is the stable, shipped tool; a lint-driven rewrite of
// its existing string-building code isn't worth the churn.
"files": ["apps/cli/src/**"],
"rules": {
"typescript/no-base-to-string": "off"
}
},
{
// `.github/scripts` is the only `bun:test` consumer; `@types/bun`'s shared `Matchers<T>`
// types `.rejects.toThrow(...)` as returning `void`, even though it must be awaited at
// runtime. Removing the `await` would make the assertion racy.
"files": [".github/scripts/**"],
"rules": {
"typescript/await-thenable": "off"
}
}
]
}