Skip to content

Commit

Permalink
chore(unocss): use unocss eslint flat config instead
Browse files Browse the repository at this point in the history
  • Loading branch information
StarHeartHunt committed Nov 7, 2024
1 parent ac19d22 commit 8b32520
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import js from "@eslint/js";
import pluginUnoCSS from "@unocss/eslint-plugin";
import unocss from "@unocss/eslint-config/flat";
import pluginImport from "eslint-plugin-import-x";
import configPrettierRecommended from "eslint-plugin-prettier/recommended";
import pluginUnicorn from "eslint-plugin-unicorn";
Expand Down Expand Up @@ -313,17 +313,6 @@ export const ignores = {
ignores: ["**/spine/runtime", "**/.husky", "**/dist"],
};

export const unocss = {
name: "unocss",
plugins: {
unocss: pluginUnoCSS,
},
rules: {
"unocss/order": "warn",
"unocss/blocklist": "error",
},
};

export default [
...javascript,
...typescript,
Expand Down

0 comments on commit 8b32520

Please sign in to comment.