Skip to content

Commit

Permalink
feat(commitlint): add commitlint config
Browse files Browse the repository at this point in the history
  • Loading branch information
Bartozzz committed May 27, 2020
1 parent 1504295 commit 94c02af
Show file tree
Hide file tree
Showing 5 changed files with 1,478 additions and 30 deletions.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ["@commitlint/config-conventional"],
};
2 changes: 1 addition & 1 deletion dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion dist/index.js.flow
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,8 @@ export default class Queue extends EventEmitter {
throw new Error(`You must provide a function, not ${typeof tasks}.`);
}

this.tasks.set(this.uniqueId++, tasks);
this.uniqueId = (this.uniqueId + 1) % Number.MAX_SAFE_INTEGER;
this.tasks.set(this.uniqueId, tasks);

// Start the queue if the queue should resolve new tasks automatically and
// hasn't been forced to stop:
Expand Down
Loading

0 comments on commit 94c02af

Please sign in to comment.