Skip to content

Commit

Permalink
Upgrade(dev): Update linting config, dev deps
Browse files Browse the repository at this point in the history
  • Loading branch information
evelynhathaway committed May 30, 2021
1 parent 1cebf65 commit d4e2d1e
Show file tree
Hide file tree
Showing 5 changed files with 9,520 additions and 999 deletions.
9 changes: 9 additions & 0 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
module.exports = {
"plugins": [
"evelyn",
],

"extends": [
"plugin:evelyn/default",
],
};
15 changes: 0 additions & 15 deletions .eslintrc.js

This file was deleted.

4 changes: 2 additions & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ module.exports = new Proxy(require("@semantic-release/commit-analyzer"), {
// If looking for the analyze commits plugin lifecycle method, return a proxy
if (property === "analyzeCommits") {
return new Proxy(target.analyzeCommits, {
async apply (target, thisArg, argumentsList) {
async apply (target, thisArgument, argumentsList) {
// Await for the analysis from the proxy target to complete
const result = await Reflect.apply(target, thisArg, argumentsList);
const result = await Reflect.apply(target, thisArgument, argumentsList);
// It's gonna make a release
if (result != null) return result;
// Nullish means it's not making a release, let's throw a fit!
Expand Down

0 comments on commit d4e2d1e

Please sign in to comment.