Skip to content

Commit

Permalink
chore: move oxlint rules to config file
Browse files Browse the repository at this point in the history
  • Loading branch information
MiniDigger committed Aug 29, 2024
1 parent f34eb1c commit ce2c73f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
13 changes: 13 additions & 0 deletions frontend/.oxlint.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
2 changes: 1 addition & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
},
Expand Down

0 comments on commit ce2c73f

Please sign in to comment.