Skip to content

Commit e816656

Browse files
committed
fix(src): linting errors
1 parent a36647c commit e816656

File tree

4 files changed

+2
-8
lines changed

4 files changed

+2
-8
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
},
77
"env": {
88
"browser": true,
9+
"webextensions": true,
910
"node": true,
1011
"jest": true
1112
}

src/inject.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const domUtil = require('./utils/domUtil');
99
const storageUtil = require('./utils/storageUtil');
1010
const CommonEnum = require('./enums/CommonEnum');
1111

12-
;(function() {
12+
(function() {
1313
window.enhancedGithub = {
1414
config: {}
1515
};

src/utils/domUtil.js

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,6 @@ let domUtil = {
4949

5050
elem.parentElement.insertAdjacentHTML('beforeend', html);
5151
}
52-
53-
return;
54-
5552
},
5653
addRepoData: function() {
5754
setTimeout(() => {
@@ -106,8 +103,6 @@ let domUtil = {
106103
apiUtil.getRepoContent(function(data) {
107104
handlersUtil.onPathContentFetched(data);
108105
});
109-
110-
return;
111106
}
112107
};
113108

src/utils/handlersUtil.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,6 @@ let handlersUtil = {
9191
}
9292
}
9393
}, 1000);
94-
95-
return;
9694
}
9795
};
9896

0 commit comments

Comments
 (0)