From 592d902529a667e20818c600a9170c70865f5bbc Mon Sep 17 00:00:00 2001 From: xingyu Date: Fri, 22 Sep 2023 17:48:56 +0800 Subject: [PATCH] chore: add unocss eslint (cherry picked from commit 57a7ed46e7938585021c2188f278bd5c717edaf0) --- .eslintrc.js | 3 ++- package.json | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 31c239b6..72d4664b 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -22,7 +22,8 @@ module.exports = defineConfig({ 'plugin:vue/vue3-recommended', 'plugin:@typescript-eslint/recommended', 'prettier', - 'plugin:prettier/recommended' + 'plugin:prettier/recommended', + '@unocss' ], rules: { 'vue/script-setup-uses-vars': 'error', diff --git a/package.json b/package.json index 990a8cd7..88ca4360 100644 --- a/package.json +++ b/package.json @@ -87,6 +87,7 @@ "@typescript-eslint/eslint-plugin": "^6.7.2", "@typescript-eslint/parser": "^6.7.2", "@unocss/transformer-variant-group": "^0.56.1", + "@unocss/eslint-config": "^0.56.1", "@vitejs/plugin-legacy": "^4.1.1", "@vitejs/plugin-vue": "^4.3.4", "@vitejs/plugin-vue-jsx": "^3.0.2",