Skip to content

Commit

Permalink
[eslint] enable wrap-iife
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jul 24, 2021
1 parent 233ffc6 commit 428636c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .eslintrc
Expand Up @@ -32,6 +32,9 @@
"nonwords": false,
}],
"strict": "error",
"wrap-iife": ["error", "outside", {
"functionPrototypeMethods": true,
}],
},
"ignorePatterns": [ "syntax-error.*" ],
"overrides": [
Expand Down
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -62,7 +62,7 @@ module.exports = (function () {
if (!harness) harness = createExitHarness(opts, wait);
return harness;
}
})();
}());

function createExitHarness(conf, wait) {
var config = conf || {};
Expand Down Expand Up @@ -137,7 +137,7 @@ function createHarness(conf_) {
st.on('result', function (r) {
if (!r.todo && !r.ok && typeof r !== 'string') test._exitCode = 1;
});
})(t);
}(t));

results.push(t);
return t;
Expand Down
2 changes: 1 addition & 1 deletion lib/test.js
Expand Up @@ -92,7 +92,7 @@ function Test(name_, opts_, cb_) {
};
}
return val;
})(this, this[prop]);
}(this, this[prop]));
}
}

Expand Down

0 comments on commit 428636c

Please sign in to comment.