diff --git a/bun.lockb b/bun.lockb index a6a5aa8..c55330e 100755 Binary files a/bun.lockb and b/bun.lockb differ diff --git a/eslint.config.mjs b/eslint.config.js similarity index 66% rename from eslint.config.mjs rename to eslint.config.js index 4a045a3..817bb3c 100644 --- a/eslint.config.mjs +++ b/eslint.config.js @@ -1,13 +1,19 @@ +import comments from "@eslint-community/eslint-plugin-eslint-comments/configs"; import { fixupPluginRules } from "@eslint/compat"; -import tseslint from "typescript-eslint"; -import eslint from "@eslint/js"; +import js from "@eslint/js"; import deprecationPlugin from "eslint-plugin-deprecation"; import importPlugin from "eslint-plugin-import"; import simpleImportSortPlugin from "eslint-plugin-simple-import-sort"; import tailwind from "eslint-plugin-tailwindcss"; -import comments from "@eslint-community/eslint-plugin-eslint-comments/configs" +import globals from "globals"; +import tseslint from "typescript-eslint"; export default tseslint.config( + js.configs.recommended, + importPlugin.flatConfigs.recommended, + comments.recommended, + ...tseslint.configs.recommended, + ...tailwind.configs["flat/recommended"], { plugins: { "@typescript-eslint": tseslint.plugin, @@ -15,16 +21,7 @@ export default tseslint.config( import: fixupPluginRules(importPlugin), "simple-import-sort": simpleImportSortPlugin, }, - }, - { ignores: ["**/node_modules/**", "**/public/**"], - }, - eslint.configs.recommended, - comments.recommended, - ...tseslint.configs.recommendedTypeChecked, - ...tseslint.configs.stylisticTypeChecked, - ...tailwind.configs["flat/recommended"], - { languageOptions: { parserOptions: { projectService: true, @@ -33,15 +30,25 @@ export default tseslint.config( sourceType: "module", project: ["./tsconfig.json"], }, + globals: { + ...globals.node, + }, }, + files: ["**/*.{js,mjs,cjs}"], rules: { "tailwindcss/no-custom-classname": [ - "error", - { - "config": "./tailwind.config.js", - "whitelist": ['select_container', 'convert_to_popup', 'convert_to_group', 'target', 'convert_to_target'] - } + "error", + { + config: "./tailwind.config.js", + whitelist: [ + "select_container", + "convert_to_popup", + "convert_to_group", + "target", + "convert_to_target", + ], + }, ], - } + }, }, ); diff --git a/package.json b/package.json index fc40987..feb07c5 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,7 @@ "dev": "bun run --watch src/index.tsx", "hot": "bun run --hot src/index.tsx", "format": "biome format --write ./src", - "build": "postcss ./src/main.css -o ./src/public/style.css", + "build": "postcss ./src/main.css -o ./src/public/generated.css", "lint": "run-p 'lint:*'", "lint:tsc": "tsc --noEmit", "lint:knip": "knip", @@ -49,6 +49,7 @@ "eslint-plugin-prettier": "^5.2.1", "eslint-plugin-simple-import-sort": "^12.1.1", "eslint-plugin-tailwindcss": "^3.17.4", + "globals": "^15.9.0", "knip": "^5.30.5", "npm-run-all2": "^6.2.3", "postcss": "^8.4.47", @@ -63,4 +64,4 @@ "trustedDependencies": [ "@biomejs/biome" ] -} +} \ No newline at end of file diff --git a/prettier.config.cjs b/prettier.config.js similarity index 100% rename from prettier.config.cjs rename to prettier.config.js