mirror of
https://github.com/langgenius/dify.git
synced 2026-05-11 14:58:23 +08:00
Add vite-plus toolchain, shared ESLint config via @antfu/eslint-config, tsgo type-check, pre-commit staged hooks, and CI lint/type-check steps for the @langgenius/dify-ui package. Made-with: Cursor
29 lines
563 B
TypeScript
29 lines
563 B
TypeScript
import { defineConfig } from 'vite-plus'
|
|
|
|
export default defineConfig({
|
|
staged: {
|
|
'*.{ts,css}': 'eslint --fix',
|
|
},
|
|
lint: {
|
|
ignorePatterns: [
|
|
'src/themes/tailwind-theme-var-define.ts',
|
|
'src/themes/light.css',
|
|
'src/themes/dark.css',
|
|
],
|
|
options: {
|
|
typeAware: true,
|
|
typeCheck: true,
|
|
denyWarnings: true,
|
|
},
|
|
},
|
|
fmt: {
|
|
ignorePatterns: [
|
|
'src/themes/tailwind-theme-var-define.ts',
|
|
'src/themes/light.css',
|
|
'src/themes/dark.css',
|
|
],
|
|
singleQuote: true,
|
|
semi: false,
|
|
},
|
|
})
|