From 491fdb04e160e0082a667b1a515ea62d513f0c6e Mon Sep 17 00:00:00 2001 From: braks <78412429+bcakmakoglu@users.noreply.github.com> Date: Sun, 2 Apr 2023 21:52:30 +0200 Subject: [PATCH] chore(tooling): disable console log Signed-off-by: braks <78412429+bcakmakoglu@users.noreply.github.com> --- packages/core/patch/slots.js | 1 + tooling/eslint-config/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/core/patch/slots.js b/packages/core/patch/slots.js index 76d88125..00abf460 100644 --- a/packages/core/patch/slots.js +++ b/packages/core/patch/slots.js @@ -58,5 +58,6 @@ async function patchSlots() { } patchSlots() + // eslint-disable-next-line no-console .then(() => console.log('slots patched')) .catch(console.error) diff --git a/tooling/eslint-config/index.js b/tooling/eslint-config/index.js index bc064361..50cee378 100644 --- a/tooling/eslint-config/index.js +++ b/tooling/eslint-config/index.js @@ -3,7 +3,7 @@ module.exports = { plugins: ['prettier'], rules: { 'vue/no-setup-props-destructure': 0, - 'no-console': 0, + 'no-console': ['error', { allow: ['warn', 'error'] }], 'unused-imports/no-unused-vars': 0, '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }], 'prettier/prettier': [