From 5757905f08f7f33080ff831e6ebbe4aaeaf1b4ba Mon Sep 17 00:00:00 2001 From: nachtjasmin Date: Sun, 18 Jun 2023 19:11:36 +0200 Subject: [PATCH] Disable console.log statements except for logging.js --- .eslintrc.yaml | 2 ++ src/libs/logging.js | 2 ++ 2 files changed, 4 insertions(+) diff --git a/.eslintrc.yaml b/.eslintrc.yaml index 1fe924c..44f1f19 100644 --- a/.eslintrc.yaml +++ b/.eslintrc.yaml @@ -11,3 +11,5 @@ parserOptions: ecmaVersion: latest sourceType: "module" +rules: + no-console: error diff --git a/src/libs/logging.js b/src/libs/logging.js index 10b50ae..1e95466 100644 --- a/src/libs/logging.js +++ b/src/libs/logging.js @@ -1,3 +1,5 @@ +/* eslint-disable no-console -- Logging should only be done with this module. */ + export async function getLogging() { try { let { logging: optionValue } = await storage.sync.get("logging");