🔨 chore: update lint and TypeScript configs to exclude temporary directories (#8856)

- Add tmp, temp, .temp directories to .eslintignore
- Add .local, .cache, .claude, .serena directories to .eslintignore
- Create .stylelintignore with same ignore patterns
- Update tsconfig.json to exclude temporary directories from type checking
- Prevents linting and type checking of temporary and AI tool directories
This commit is contained in:
Maple Gao
2025-08-20 11:06:24 +08:00
committed by GitHub
parent 1ee6724168
commit 79c81bb954
3 changed files with 57 additions and 1 deletions

View File

@@ -29,3 +29,20 @@ logs
# misc # misc
# add other ignore file below # add other ignore file below
.next .next
# temporary directories
tmp
temp
.temp
.local
docs/.local
# cache directories
.cache
# AI coding tools directories
.claude
.serena
# MCP tools
/.serena/**

39
.stylelintignore Normal file
View File

@@ -0,0 +1,39 @@
# Stylelintignore for LobeHub
################################################################
# dependencies
node_modules
# ci
coverage
.coverage
# production
dist
es
lib
logs
# framework specific
.next
.umi
.umi-production
.umi-test
.dumi/tmp*
# temporary directories
tmp
temp
.temp
.local
docs/.local
# cache directories
.cache
# AI coding tools directories
.claude
.serena
# MCP tools
/.serena/**

View File

@@ -31,7 +31,7 @@
} }
] ]
}, },
"exclude": ["node_modules", "public/sw.js", "apps/desktop"], "exclude": ["node_modules", "public/sw.js", "apps/desktop", "tmp", "temp", ".temp"],
"include": [ "include": [
"**/*.d.ts", "**/*.d.ts",
"**/*.ts", "**/*.ts",