豆豆友情提示:这是一个非官方 GitHub 代理镜像,主要用于网络测试或访问加速。请勿在此进行登录、注册或处理任何敏感信息。进行这些操作请务必访问官方网站 github.com。 Raw 内容也通过此代理提供。
Skip to content

Commit c55e30d

Browse files
chore: allow console in CLI, logger, and tests
1 parent 811e9c1 commit c55e30d

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

eslint.config.mjs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ export default tseslint.config(
2222
"no-console": "warn",
2323
},
2424
},
25+
{
26+
// CLI and logger are allowed to use console
27+
files: ["src/cli.ts", "src/logger.ts"],
28+
rules: {
29+
"no-console": "off",
30+
},
31+
},
2532
{
2633
// Test files don't need the project reference and need Jest globals
2734
files: ["**/__tests__/**/*.ts", "**/*.test.ts"],
@@ -40,6 +47,9 @@ export default tseslint.config(
4047
jest: "readonly",
4148
},
4249
},
50+
rules: {
51+
"no-console": "off",
52+
},
4353
},
4454
{
4555
ignores: ["dist/**", "node_modules/**", "*.js", "*.mjs"],

0 commit comments

Comments
 (0)