-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
64 lines (64 loc) · 1.42 KB
/
.oxlintrc.json
File metadata and controls
64 lines (64 loc) · 1.42 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"categories": {
"correctness": "error",
"suspicious": "warn"
},
"env": {
"browser": true,
"node": true
},
"globals": {
"defineProps": "readonly",
"defineEmits": "readonly",
"defineExpose": "readonly",
"withDefaults": "readonly",
"defineOptions": "readonly"
},
"plugins": ["import", "typescript", "unicorn"],
"rules": {
"no-await-in-loop": "off",
"no-empty": ["error", { "allowEmptyCatch": true }],
"no-undef": "warn",
"no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
],
"typescript/no-explicit-any": "off",
"typescript/no-unused-vars": [
"warn",
{
"argsIgnorePattern": "^_",
"varsIgnorePattern": "^_"
}
]
},
"overrides": [
{
"files": ["src/**/*.{ts,tsx,js,jsx,vue}"],
"rules": {
"no-restricted-imports": [
"error",
{
"paths": [
{
"name": "reka-ui",
"message": "Import reka-ui only from src/components/ui/**. App code must use local shadcn-vue wrappers from @components/ui/*."
}
]
}
]
}
},
{
"files": ["src/components/ui/**/*.{ts,tsx,js,jsx,vue}"],
"rules": {
"no-restricted-imports": "off"
}
}
],
"ignorePatterns": ["dist/", "dist-plan/", "dist-verify/", "build/", "node_modules/", ".git/", ".vscode/", ".idea/", "*.min.js", "*.css.map", "public/", "src/fonts/", "src/images/"]
}