Repository navigation
Expand file tree
/
Copy path.oxlintrc.json
More file actions
73 lines (73 loc) · 2.2 KB
/
Copy path.oxlintrc.json
File metadata and controls
73 lines (73 loc) · 2.2 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
72
73
{
"$schema": "./node_modules/@effect/tsgo/oxlint-schema.json",
"extends": ["./node_modules/@effect/tsgo/oxlint-presets/recommended.json"],
"jsPlugins": ["@shadcn/lint"],
"settings": {
"shadcn": {
"note": "Follow ui/DESIGN.md: semantic tokens, component variants and sizes, layout-only className."
}
},
"rules": {
"effecttsgo/node-builtin-import": "off",
"effecttsgo/async-function": "off",
"effecttsgo/global-console": "off",
"effecttsgo/process-env": "off",
"effecttsgo/global-date": "off",
"effecttsgo/global-fetch": "off",
"effecttsgo/new-promise": "off",
"effecttsgo/crypto-random-uuid": "off",
"effecttsgo/global-timers": "off",
"effecttsgo/global-random": "off"
},
"ignorePatterns": [
"plans",
"node_modules",
"repos",
"repos/**",
"dist",
"dist-*",
"**/*.gen.ts",
"**/types.gen.ts"
],
"overrides": [
{
"files": ["ui/src/**/*.{ts,tsx}", "plugins/auth/ui/src/**/*.{ts,tsx}"],
"rules": {
"shadcn/no-restyle": [
"error",
{
"allow": ["layout"],
"contracts": [
{
"pattern": "^(Card|CardHeader|CardContent|CardFooter|TabsContent|SheetHeader|SheetFooter|DialogHeader|DialogFooter|SidebarContent|SidebarGroup)$",
"allow": ["layout", "spacing"]
},
{
"pattern": "^Skeleton$",
"allow": ["layout", "spacing", "shape"]
},
{
"pattern": "^(Input|Textarea|InputGroupInput|InputGroupTextarea|Badge)$",
"allow": ["layout", "font-mono"]
}
]
}
],
"shadcn/no-raw-colors": "error",
"shadcn/no-arbitrary-values": "error",
"shadcn/no-unknown-classes": "error",
"shadcn/no-inline-styles": "warn",
"shadcn/require-static-classes": "warn"
}
},
{
"files": ["ui/src/components/ui/**", "plugins/auth/ui/src/components/ui/**"],
"rules": {
"shadcn/no-restyle": "off",
"shadcn/no-arbitrary-values": "off",
"shadcn/require-static-classes": "off",
"shadcn/no-unknown-classes": "off"
}
}
]
}