chore: move oxlint rules to config file

This commit is contained in:
MiniDigger | Martin 2024-08-29 20:03:52 +02:00
parent f34eb1ce9e
commit ce2c73fb4c
2 changed files with 14 additions and 1 deletions

13
frontend/.oxlint.json Normal file
View 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"
}
}

View File

@ -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"
},