From c6a10db36b74620d42dd77f9d5f50920557889ba Mon Sep 17 00:00:00 2001 From: log1997 <2694233102@qq.com> Date: Thu, 4 Dec 2025 12:43:45 +0800 Subject: [PATCH] =?UTF-8?q?build(eslint):=20=E6=9B=B4=E6=96=B0=20ESLint=20?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=BB=A5=E5=BF=BD=E7=95=A5=E6=9B=B4=E5=A4=9A?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=B9=B6=E6=B7=BB=E5=8A=A0=E8=AD=A6=E5=91=8A?= =?UTF-8?q?=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在原有忽略文件列表中新增了 '*.config.js' 文件类型,同时添加了 'no-console' 和 'no-debugger' 规则,并将其设置为警告级别,以提高 代码质量和一致性。 --- eslint.config.js | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/eslint.config.js b/eslint.config.js index b48901c..4a63dce 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,7 +1,13 @@ import antfu from '@antfu/eslint-config' export default antfu( - { - ignores: ['**/node_modules', '**/public', '**/dist', '**/package.json', '**/*.yaml', '**/.gitignore', '**/.env*', '**/tsconfig*'], - }, + { + ignores: ['**/node_modules', '**/public', '**/dist', '**/package.json', '**/*.yaml', '**/.gitignore', '**/.env*', '**/tsconfig*', '**/*.config.js'], + }, + { + rules: { + 'no-console': 'warn', + 'no-debugger': 'warn', + } + }, )