From 0095b3262e1a4051a27862e78636359b14735d2d Mon Sep 17 00:00:00 2001 From: Kirill Gavrilov Date: Sat, 22 Feb 2025 02:21:23 +0300 Subject: [PATCH] chore(eslint): enable 'no-console' rule for plugin's source code --- eslint.config.js | 7 +++++++ 1 file changed, 7 insertions(+) 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 }],