-
Notifications
You must be signed in to change notification settings - Fork 98
Expand file tree
/
Copy path.oxlintrc.json
More file actions
83 lines (83 loc) · 2.18 KB
/
Copy path.oxlintrc.json
File metadata and controls
83 lines (83 loc) · 2.18 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
74
75
76
77
78
79
80
81
82
83
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "react", "import"],
"categories": {
"correctness": "error"
},
"ignorePatterns": [
"**/dist/**",
"**/.svelte-kit/**",
"examples/**",
"**/test/**",
"**/*.d.ts",
"**/*.config.ts",
"**/fuzz/**",
"**/testSetup.ts",
"playwright.base.ts",
"packages/create-vite-app/**",
"packages/create-repo-node-app/**"
],
"rules": {
"no-restricted-imports": [
"error",
{
"patterns": [
{
"group": [
"@automerge/automerge",
"@automerge/automerge/*",
"!@automerge/automerge/slim",
"!@automerge/automerge/slim/*"
],
"message": "Import from @automerge/automerge/slim instead of @automerge/automerge"
},
{
"group": [
"@automerge/automerge-repo",
"@automerge/automerge-repo/*",
"!@automerge/automerge-repo/slim",
"!@automerge/automerge-repo/slim/*"
],
"message": "Import from @automerge/automerge-repo/slim instead of @automerge/automerge-repo"
}
]
}
],
"no-unused-vars": [
"error",
{
"varsIgnorePattern": "^_",
"argsIgnorePattern": "^_",
"caughtErrors": "none"
}
],
"no-unused-expressions": ["error", { "allowShortCircuit": true }],
"typescript/no-floating-promises": "error",
"no-empty-function": "off",
"no-param-reassign": "off",
"typescript/no-non-null-assertion": "off",
"typescript/no-explicit-any": "off",
"react-hooks/exhaustive-deps": "off",
"typescript/restrict-template-expressions": "off",
"typescript/await-thenable": "off",
"typescript/no-useless-default-assignment": "off",
"typescript/no-meaningless-void-operator": "off"
},
"settings": {
"react": { "version": "18" }
},
"options": {
"typeAware": true
},
"overrides": [
{
"files": [
"packages/automerge-react/**",
"packages/automerge-vanillajs/**"
],
"rules": {
"no-restricted-imports": "off"
}
}
]
}