From 3c5eaeb97b60678a0bdd4d8a26c622ea5f2616b6 Mon Sep 17 00:00:00 2001 From: =?utf8?q?J=C3=A9r=C3=B4me=20Benoit?= Date: Tue, 9 Feb 2021 13:10:16 +0100 Subject: [PATCH] Override specific lint rule for JS (#95) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Jérôme Benoit --- .eslintrc.js | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.eslintrc.js b/.eslintrc.js index 16c73a1c..a5c382c8 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -20,9 +20,6 @@ module.exports = { rules: { 'no-void': 'off', - // Disabled because it reports these for js files - '@typescript-eslint/no-var-requires': 'off', - // We have some intentionally empty functions '@typescript-eslint/no-empty-function': 'off', @@ -30,5 +27,13 @@ module.exports = { 'error', { ignoreProperties: true } ] - } + }, + overrides: [ + { + files: ['*.js'], + rules: { + '@typescript-eslint/no-var-requires': 'off' + } + } + ] } -- 2.34.1