Skip to content

Commit dee9485

Browse files
committed
refactor(ci): enforce no-console rule in production code
1 parent e15a46a commit dee9485

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

eslint.config.mjs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,17 @@ const eslintConfig = defineConfig([
88
...nextTs,
99
eslintConfigPrettier,
1010
globalIgnores(['.next/**', 'out/**', 'build/**', 'next-env.d.ts', 'coverage/**', '.github/**']),
11+
{
12+
rules: {
13+
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
14+
},
15+
},
16+
{
17+
files: ['**/*.test.{js,jsx,ts,tsx}', '**/__tests__/**/*.{js,jsx,ts,tsx}', 'scripts/**/*.{js,jsx,ts,tsx}'],
18+
rules: {
19+
'no-console': 'off',
20+
},
21+
},
1122
]);
1223

1324
export default eslintConfig;

0 commit comments

Comments
 (0)