From 3c2d0590b00efc6828e5600049a28bccb5344bde Mon Sep 17 00:00:00 2001 From: ItMaga Date: Mon, 19 Jun 2023 17:35:14 +0300 Subject: [PATCH 1/2] Restrict the `vue/no-console` rule to the ` `, options: [{ allow: ['log', 'warn', 'info'] }] + }, + { + filename: 'test.vue', + code: ` + + + `, + options: [{ allow: ['error'] }] } ], invalid: [ From 4efc651c698e355fed11f394a81bc7c91a770da7 Mon Sep 17 00:00:00 2001 From: ItMaga Date: Mon, 19 Jun 2023 17:54:22 +0300 Subject: [PATCH 2/2] simplify test case --- tests/lib/rules/no-console.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/lib/rules/no-console.js b/tests/lib/rules/no-console.js index ab0dc4629..7b6acfeab 100644 --- a/tests/lib/rules/no-console.js +++ b/tests/lib/rules/no-console.js @@ -57,14 +57,11 @@ tester.run('no-console', rule, { { filename: 'test.vue', code: ` - + - `, - options: [{ allow: ['error'] }] + ` } ], invalid: [