-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy path.oxlintrc.jsonc
More file actions
47 lines (47 loc) · 1.46 KB
/
.oxlintrc.jsonc
File metadata and controls
47 lines (47 loc) · 1.46 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
{
"$schema": "./node_modules/oxlint/configuration_schema.json",
"plugins": ["typescript", "vue"],
"env": {
"browser": true,
},
"ignorePatterns": ["node_modules", "coverage", "dist", ".output", ".nuxt", "clean-project.js"],
/*
I consider these rules essential for this project.
Feel free to remove any that you find unnecessary
and/or extend the ruleset with additional ones as needed.
Documentation: https://oxc.rs/docs/guide/usage/linter/rules
*/
"rules": {
"typescript/no-explicit-any": ["warn", { "fixToUnknown": true }],
"typescript/no-non-null-assertion": "warn",
"typescript/consistent-type-imports": "error",
"vue/no-export-in-script-setup": "error",
"vue/no-deprecated-destroyed-lifecycle": "error",
"vue/prefer-import-from-vue": "error",
"vue/define-props-declaration": ["error", "type-based"],
"vue/require-typed-ref": "warn",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-debugger": "error",
"eqeqeq": "error",
"prefer-const": "error",
"no-unused-vars": [
"error",
{
"args": "all",
"argsIgnorePattern": "^(_|instance)",
"caughtErrors": "none",
"destructuredArrayIgnorePattern": "^_",
"varsIgnorePattern": "^(prop|pending|key)$",
"ignoreRestSiblings": true,
},
],
},
"overrides": [
{
"files": ["nuxt.config.ts"],
"rules": {
"typescript/no-unsafe-call": "off",
},
},
],
}