From 79c81bb9549eb7223f315906b2746b7c60bebf36 Mon Sep 17 00:00:00 2001 From: Maple Gao Date: Wed, 20 Aug 2025 11:06:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=A8=20chore:=20update=20lint=20and=20T?= =?UTF-8?q?ypeScript=20configs=20to=20exclude=20temporary=20directories=20?= =?UTF-8?q?(#8856)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 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 --- .eslintignore | 17 +++++++++++++++++ .stylelintignore | 39 +++++++++++++++++++++++++++++++++++++++ tsconfig.json | 2 +- 3 files changed, 57 insertions(+), 1 deletion(-) create mode 100644 .stylelintignore diff --git a/.eslintignore b/.eslintignore index 3c5530b607..8ed76bef28 100644 --- a/.eslintignore +++ b/.eslintignore @@ -29,3 +29,20 @@ logs # misc # add other ignore file below .next + +# temporary directories +tmp +temp +.temp +.local +docs/.local + +# cache directories +.cache + +# AI coding tools directories +.claude +.serena + +# MCP tools +/.serena/** diff --git a/.stylelintignore b/.stylelintignore new file mode 100644 index 0000000000..e1ac30fba1 --- /dev/null +++ b/.stylelintignore @@ -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/** \ No newline at end of file diff --git a/tsconfig.json b/tsconfig.json index cad956b486..211925d02e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -31,7 +31,7 @@ } ] }, - "exclude": ["node_modules", "public/sw.js", "apps/desktop"], + "exclude": ["node_modules", "public/sw.js", "apps/desktop", "tmp", "temp", ".temp"], "include": [ "**/*.d.ts", "**/*.ts",