We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb34a89 commit 367b696Copy full SHA for 367b696
lib/rules/module-vars.js
@@ -35,7 +35,9 @@ module.exports = {
35
create: function(context) {
36
return {
37
'CallExpression[callee.name=define]': function(node) {
38
- const config = context.options[0] || {};
+ if (!context.options[0]) return;
39
+
40
+ const config = context.options[0];
41
const modules = moduleUtil.getModules(node);
42
43
if (modules.varCount === 0) return;
0 commit comments