-
Notifications
You must be signed in to change notification settings - Fork 960
Expand file tree
/
Copy path.oxlintrc.json
More file actions
79 lines (74 loc) · 2.16 KB
/
Copy path.oxlintrc.json
File metadata and controls
79 lines (74 loc) · 2.16 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["import", "promise", "react", "typescript", "unicorn", "oxc"],
"categories": {
"correctness": "error"
},
"env": {
"browser": true,
"node": true,
"mocha": true,
"es2022": true
},
"settings": {},
"rules": {
"no-console": "error",
"max-lines": ["error", 2000],
"complexity": ["error", { "max": 47 }],
"no-shadow": "error",
"no-use-before-define": ["error", { "functions": false, "classes": true, "variables": true }],
"no-return-assign": "off",
"no-unused-vars": "off",
"no-unused-expressions": "off",
"typescript/ban-ts-comment": "off",
"typescript/no-explicit-any": "off",
"typescript/no-var-requires": "off",
"typescript/return-await": "error",
"typescript/dot-notation": "error",
"typescript/consistent-type-imports": [
"warn",
{ "prefer": "type-imports", "fixStyle": "separate-type-imports" }
],
"typescript/no-unused-vars": ["error", { "args": "after-used", "argsIgnorePattern": "^_", "varsIgnorePattern": "^_" }],
"import/no-duplicates": "error",
"import/default": "off",
"promise/always-return": "off",
"promise/no-nesting": "off",
"react-hooks/exhaustive-deps": "off",
"react/no-this-in-sfc": "off",
"unicorn/no-empty-file": "off"
},
"overrides": [
{
"files": ["e2e/**/*.ts"],
"rules": {
"default-case": "off"
}
},
{
"files": [
"e2e/watch-runner.ts",
"e2e/http-helper.ts",
"e2e/performance/**/*.ts",
"components/legacy/e2e-helper/e2e-scope-helper.ts",
"components/legacy/e2e-helper/npm-ci-registry.ts"
],
"rules": {
"no-console": "off"
}
}
],
"ignorePatterns": [
"**/node_modules/**",
"**/dist/**",
"**/.bit/**",
"**/coverage/**",
"e2e/fixtures/**",
"components/legacy/e2e-helper/fixtures/**",
"components/legacy/e2e-helper/excluded-fixtures/**",
"components/semantics/doc-parser/fixtures/**",
"scopes/dependencies/dependencies/files-dependency-builder/fixtures/**",
"scopes/semantics/schema/mock/**",
"scripts/**"
]
}