Skip to content

Commit f805656

Browse files
committed
fix: Warn for global require
1 parent 93154f3 commit f805656

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rules/node.js

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

1313
// require require() calls to be placed at top-level module scope
1414
// http://eslint.org/docs/rules/global-require
15-
'global-require': 'error',
15+
'global-require': 'warn',
1616

1717
// require error handling in callbacks
1818
// http://eslint.org/docs/rules/handle-callback-err

0 commit comments

Comments
 (0)