-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.oxlintrc.json
More file actions
36 lines (36 loc) · 921 Bytes
/
.oxlintrc.json
File metadata and controls
36 lines (36 loc) · 921 Bytes
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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import"],
"categories": {
"correctness": "error",
"suspicious": "warn",
"pedantic": "off",
"perf": "warn",
"nursery": "off"
},
"rules": {
"eqeqeq": "error",
"no-console": "error",
"no-unused-vars": "error",
"no-shadow": "error",
"no-restricted-syntax": [
"error",
{
"selector": "CallExpression[callee.type='MemberExpression'][callee.property.name=/^(then|catch|finally)$/]",
"message": "Prefer async/await over promise chains (.then/.catch/.finally)."
}
],
"import/no-cycle": "error",
"import/no-duplicates": "error",
"import/no-self-import": "error",
"import/no-unresolved": "error"
},
"ignorePatterns": [
"dist/**",
".tmp-jspm-sass/**",
"coverage/**",
"vendor/**",
"test/snapshots/**",
"node_modules/**"
]
}