From 93154f313fe494b95307c2bbc5990938a53e8e72 Mon Sep 17 00:00:00 2001 From: Joshua Wiens Date: Sun, 17 Dec 2017 03:41:42 -0600 Subject: [PATCH] fix: Warn for dynamic require --- rules/imports.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rules/imports.js b/rules/imports.js index a958dcf..496b92e 100644 --- a/rules/imports.js +++ b/rules/imports.js @@ -172,7 +172,7 @@ module.exports = { // Forbid require() calls with expressions // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md - 'import/no-dynamic-require': 'error', + 'import/no-dynamic-require': 'warn', // prevent importing the submodules of other modules // https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md