Skip to content

Commit 9d598cf

Browse files
fix: disable rule node/global-require
Allow dynamic imports.
1 parent c5d6ae7 commit 9d598cf

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/plugins/node.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ export const settings: Linter.Config = {
88
rules: {
99
"node/callback-return": "error",
1010
"node/exports-style": ["error", "module.exports"],
11-
"node/global-require": "error",
11+
// Allow dynamic imports.
12+
"node/global-require": "off",
1213
"node/handle-callback-err": ["error", "^(err|error)$"],
1314
"node/no-callback-literal": "error",
1415
"node/no-mixed-requires": [

0 commit comments

Comments
 (0)