chore: update lint config, make tailwindcss-classname-highlight vscode extension work (#113)

This commit is contained in:
Stephen Zhou 2024-07-06 10:38:43 +08:00 committed by GitHub
parent 771737368e
commit c1b3bae05f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 384 additions and 556 deletions

View File

@ -23,7 +23,6 @@ export default defineConfig(
},
},
rules: {
"unicorn/prefer-module": "off",
"no-restricted-globals": [
"error",
{

View File

@ -2,6 +2,7 @@
"name": "Follow",
"type": "module",
"version": "0.0.1",
"private": true,
"packageManager": "pnpm@9.1.4",
"description": "An Electron application with React and TypeScript",
"author": "example.com",
@ -11,7 +12,7 @@
"scripts": {
"build": "npm run typecheck && electron-vite build --outDir=dist && electron-forge package && electron-forge make",
"build:web": "vite build",
"dev": "electron-vite dev",
"dev": "electron-vite dev --outDir=dist",
"lint": "eslint",
"lint:fix": "eslint --fix",
"prepare": "pnpm exec simple-git-hooks && test -f .env || cp .env.example .env",
@ -129,7 +130,7 @@
"electron-devtools-installer": "3.2.0",
"electron-vite": "^2.3.0",
"eslint": "^9.6.0",
"eslint-config-hyoban": "3.0.0-beta.24",
"eslint-config-hyoban": "3.0.0-beta.26",
"hono": "4.4.7",
"lint-staged": "15.2.7",
"postcss": "8.4.38",

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,7 @@
import "./cssAsPlugin"
import path from "node:path"
import { getIconCollections, iconsPlugin } from "@egoist/tailwindcss-icons"
import {
cleanupSVG,
@ -145,7 +147,7 @@ export default resolveConfig({
iconsPlugin({
collections: {
...getIconCollections(["mingcute"]),
mgc: getCollections("./icons/mgc"),
mgc: getCollections(path.resolve(__dirname, "./icons/mgc")),
},
}),
require("tailwindcss-animate"),