Upgrade developer toolchain and clean up project files: add a new "check" script (replacing previous lint/fmt), bump TypeScript and add @halo-dev/vite-plugin-halo-theme, update pnpm packageManager version, remove legacy templates HTML files and add "templates" to .gitignore, and apply related changes to vite.config.ts. The lockfile was updated to reflect dependency changes.
22 lines
496 B
TypeScript
22 lines
496 B
TypeScript
import { haloThemePlugin } from "@halo-dev/vite-plugin-halo-theme";
|
|
import { defineConfig } from "vite-plus";
|
|
|
|
export default defineConfig({
|
|
plugins: [haloThemePlugin()],
|
|
lint: { options: { typeAware: true, typeCheck: true } },
|
|
fmt: {
|
|
printWidth: 100,
|
|
tabWidth: 2,
|
|
useTabs: false,
|
|
endOfLine: "lf",
|
|
sortPackageJson: true,
|
|
insertFinalNewline: true,
|
|
sortImports: {},
|
|
sortTailwindcss: {},
|
|
ignorePatterns: [],
|
|
},
|
|
staged: {
|
|
"*": ["vp check"],
|
|
},
|
|
});
|