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: [
".next",
"imports/**",
"src/components/ui/**",
"src/components/ai-elements/**",
"*.js",

View File

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