diff --git a/eslint.config.js b/eslint.config.js index 724554f..56da49e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -21,6 +21,13 @@ export default tseslint.config( braceStyle: '1tbs', quoteProps: 'as-needed', }), + { + // Apply `no-console` only to files inside `specific-directory/` + files: ['src/**/*'], + rules: { + 'no-console': ['error', { allow: ['warn', 'error'] }], + }, + }, { rules: { '@stylistic/curly-newline': ['error', { consistent: true }],