Skip to content

Commit

Permalink
Update eslint config
Browse files Browse the repository at this point in the history
  • Loading branch information
tshemsedinov committed Jan 20, 2021
1 parent 236c56a commit c7197db
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
3 changes: 0 additions & 3 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
"parserOptions": {
"ecmaVersion": 2020
},
"globals": {
"BigInt": true
},
"rules": {
"indent": [
"error",
Expand Down
6 changes: 3 additions & 3 deletions JavaScript/8-compose-proto.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ function AddOnlySet(it) {
this.size = it.length;
}

AddOnlySet.prototype.add = function (value) {
AddOnlySet.prototype.add = function(value) {
this.set.add(value);
this.size = this.set.size;
this.emitter.emit('add', value);
};

AddOnlySet.prototype.on = function (name, listener) {
AddOnlySet.prototype.on = function(name, listener) {
this.emitter.on(name, listener);
};

AddOnlySet.prototype.toString = function () {
AddOnlySet.prototype.toString = function() {
return [...this.set.values()].join();
};

Expand Down

0 comments on commit c7197db

Please sign in to comment.