-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathoxlint.config.ts
More file actions
57 lines (50 loc) · 1.39 KB
/
Copy pathoxlint.config.ts
File metadata and controls
57 lines (50 loc) · 1.39 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
import { defineConfig } from "oxlint";
export default defineConfig({
$schema: "./node_modules/oxlint/configuration_schema.json",
ignorePatterns: [
"**/node_modules/",
"dist/",
"quasar.config.*.temporary.compiled*",
".quasar/",
"env.d.ts",
"quasar.config.ts",
"src-cordova/",
"src-capacitor/",
"src/router/typed-router.d.ts"
],
options: {
typeAware: true,
typeCheck: true,
maxWarnings: 10
},
plugins: ["typescript", "vue", "import", "eslint", "promise", "unicorn"],
categories: {
correctness: "error",
// style: "error",
pedantic: "warn",
suspicious: "error",
perf: "error",
restriction: "error"
},
rules: {
complexity: "off",
"import/max-dependencies": "off",
"import/no-default-export": "off",
"max-depth": "off",
"max-lines": "off",
"max-lines-per-function": "off",
"no-console": ["warn", { allow: ["error"] }],
"promise/always-return": ["warn", { ignoreLastCallback: true }],
"typescript/no-non-null-assertion": "off",
"typescript/no-unsafe-argument": "off",
"typescript/no-unsafe-assignment": "off",
"typescript/no-unsafe-call": "off",
"typescript/no-unsafe-member-access": "off",
"typescript/no-unsafe-return": "off",
"typescript/prefer-readonly-parameter-types": "off",
"typescript/strict-boolean-expressions": "off"
},
env: {
builtin: true
}
});