From ce2c73fb4c22c63147eb6524fdb3bbfb08ec537d Mon Sep 17 00:00:00 2001 From: MiniDigger | Martin Date: Thu, 29 Aug 2024 20:03:52 +0200 Subject: [PATCH] chore: move oxlint rules to config file --- frontend/.oxlint.json | 13 +++++++++++++ frontend/package.json | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 frontend/.oxlint.json diff --git a/frontend/.oxlint.json b/frontend/.oxlint.json new file mode 100644 index 000000000..1e62c6938 --- /dev/null +++ b/frontend/.oxlint.json @@ -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" + } +} diff --git a/frontend/package.json b/frontend/package.json index 479923515..6b0230c75 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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" },