Skip to content

Commit 93154f3

Browse files
committed
fix: Warn for dynamic require
1 parent 5c281f1 commit 93154f3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/imports.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ module.exports = {
172172

173173
// Forbid require() calls with expressions
174174
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-dynamic-require.md
175-
'import/no-dynamic-require': 'error',
175+
'import/no-dynamic-require': 'warn',
176176

177177
// prevent importing the submodules of other modules
178178
// https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-internal-modules.md

0 commit comments

Comments
 (0)