Skip to content

Commit

Permalink
fix: Warn for dynamic require
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwiens committed Dec 17, 2017
1 parent 5c281f1 commit 93154f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rules/imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 93154f3

Please sign in to comment.