chore(frontend): 恢复上游 eslint 配置并在脚本忽略 imports

This commit is contained in:
肖应宇 2026-03-29 00:47:39 +08:00
parent a34a023675
commit 929260bdb8
2 changed files with 3 additions and 4 deletions

View File

@ -9,7 +9,6 @@ export default tseslint.config(
{ {
ignores: [ ignores: [
".next", ".next",
"imports/**",
"src/components/ui/**", "src/components/ui/**",
"src/components/ai-elements/**", "src/components/ai-elements/**",
"*.js", "*.js",

View File

@ -6,12 +6,12 @@
"scripts": { "scripts": {
"demo:save": "node scripts/save-demo.js", "demo:save": "node scripts/save-demo.js",
"build": "next build", "build": "next build",
"check": "eslint . --ext .ts,.tsx && tsc --noEmit", "check": "eslint . --ext .ts,.tsx --ignore-pattern imports/** && tsc --noEmit",
"dev": "next dev --turbo", "dev": "next dev --turbo",
"format": "prettier --check .", "format": "prettier --check .",
"format:write": "prettier --write .", "format:write": "prettier --write .",
"lint": "eslint . --ext .ts,.tsx", "lint": "eslint . --ext .ts,.tsx --ignore-pattern imports/**",
"lint:fix": "eslint . --ext .ts,.tsx --fix", "lint:fix": "eslint . --ext .ts,.tsx --ignore-pattern imports/** --fix",
"preview": "next build && next start", "preview": "next build && next start",
"start": "next start", "start": "next start",
"typecheck": "tsc --noEmit" "typecheck": "tsc --noEmit"