-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
71 lines (70 loc) · 1.74 KB
/
Copy pathoxlint.config.ts
File metadata and controls
71 lines (70 loc) · 1.74 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
import { defineConfig } from "oxlint"
import core from "ultracite/oxlint/core"
import vitest from "ultracite/oxlint/vitest"
export default defineConfig({
extends: [core, vitest],
ignorePatterns: [".tegami/publish-lock.yaml"],
overrides: [
{
files: ["tests/**/*.ts", "**/*.test.ts"],
rules: {
"vitest/max-expects": "off",
},
},
{
files: ["**/*.{ts,tsx}"],
rules: {
"no-use-before-define": [
"error",
{
allowNamedExports: true,
functions: false,
ignoreTypeReferences: true,
},
],
},
},
{
files: [
"src/index.ts",
"src/builder/index.ts",
"src/resolver/index.ts",
"src/resolution/index.ts",
"src/schema/index.ts",
],
rules: {
"oxc/no-barrel-file": "off",
},
},
],
rules: {
"vitest/max-expects": "off",
"func-style": "off",
"no-console": "error",
"no-inline-comments": "off",
"no-nested-ternary": "off",
// Keep disabled globally; re-enable selectively via overrides for runtime-heavy paths.
"no-use-before-define": "off",
// "no-restricted-imports": [
// "error",
// {
// importNames: ["env"],
// message:
// "Use `import { env } from '~/env'` instead to ensure validated types.",
// name: "process",
// },
// ],
// "no-restricted-properties": [
// "error",
// {
// message:
// "Use `import { env } from '~/env'` instead to ensure validated types.",
// object: "process",
// property: "env",
// },
// ],
"require-await": "off",
"sort-keys": "off",
"unicorn/no-nested-ternary": "off",
},
})