From: Jérôme Benoit Date: Tue, 9 Feb 2021 12:10:16 +0000 (+0100) Subject: Override specific lint rule for JS (#95) X-Git-Tag: v2.0.0-beta.2~69 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=3c5eaeb97b60678a0bdd4d8a26c622ea5f2616b6;p=poolifier.git Override specific lint rule for JS (#95) Signed-off-by: Jérôme Benoit --- 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' + } + } + ] }