From eb0031bf87c3716a227fd0d2cc59df2b4844524d Mon Sep 17 00:00:00 2001 From: Daniel Kluge Date: Tue, 21 Jun 2022 18:47:42 +0200 Subject: [PATCH] Linting --- .eslintrc.json | 2 +- lib/commands/definitions.ts | 3 +-- next.config.js | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index cfca33b..f90655d 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -2,7 +2,7 @@ "extends": "next/core-web-vitals", "rules": { "semi": ["warn", "always", { "omitLastInOneLineBlock": true }], - "quotes": ["warn", "double"], + "quotes": ["warn", "double", { "avoidEscape": true }], "eqeqeq": "error" } } diff --git a/lib/commands/definitions.ts b/lib/commands/definitions.ts index 6bda24a..073c3c0 100644 --- a/lib/commands/definitions.ts +++ b/lib/commands/definitions.ts @@ -257,8 +257,7 @@ const color: Command = { switch(true) { case color.hex().toLowerCase() === "#1f1e33": { - // eslint-disable-next-line quotes - if (cmdIf.callbacks?.setModalHTML) cmdIf.callbacks?.setModalHTML(``); + if (cmdIf.callbacks?.setModalHTML) cmdIf.callbacks?.setModalHTML(''); if (cmdIf.callbacks?.setModalVisible) cmdIf.callbacks?.setModalVisible(true); break; } diff --git a/next.config.js b/next.config.js index 8b61df4..3dd7ef1 100644 --- a/next.config.js +++ b/next.config.js @@ -1,4 +1,4 @@ /** @type {import('next').NextConfig} */ module.exports = { reactStrictMode: true, -} +};