mirror of
https://github.com/HangarMC/Hangar.git
synced 2024-11-21 01:21:54 +08:00
chore: move oxlint rules to config file
This commit is contained in:
parent
f34eb1ce9e
commit
ce2c73fb4c
13
frontend/.oxlint.json
Normal file
13
frontend/.oxlint.json
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"settings": {},
|
||||
"rules": {
|
||||
"no-unused-vars": "allow",
|
||||
"import/namespace": "warn",
|
||||
"import/no-cycle": "warn",
|
||||
"import/named": "warn",
|
||||
"import/default": "warn"
|
||||
}
|
||||
}
|
@ -11,7 +11,7 @@
|
||||
"previewBuild": "nuxt build && nuxt preview",
|
||||
"lint:eslint": "eslint --ext \".js,.vue,.ts,.html\" --ignore-path .gitignore --fix .",
|
||||
"lint:prettier": "prettier -w .",
|
||||
"lint:oxlint": "oxlint --import-plugin -W correctness -W import/namespace -W import/no-cycle -A no-unused-vars --fix",
|
||||
"lint:oxlint": "oxlint -c .oxlint.json --import-plugin --fix",
|
||||
"lint:typecheck": "nuxt typecheck",
|
||||
"prepare": "nuxt prepare && cd .. && husky install frontend/.husky"
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user