first commit
This commit is contained in:
10
node_modules/eslint-plugin-import-x/lib/utils/static-require.js
generated
vendored
Normal file
10
node_modules/eslint-plugin-import-x/lib/utils/static-require.js
generated
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
export function isStaticRequire(node) {
|
||||
return (node &&
|
||||
node.callee &&
|
||||
node.callee.type === 'Identifier' &&
|
||||
node.callee.name === 'require' &&
|
||||
node.arguments.length === 1 &&
|
||||
node.arguments[0].type === 'Literal' &&
|
||||
typeof node.arguments[0].value === 'string');
|
||||
}
|
||||
//# sourceMappingURL=static-require.js.map
|
||||
Reference in New Issue
Block a user