Skip to content

Commit

Permalink
Enable and fix eslint for all packages
Browse files Browse the repository at this point in the history
  • Loading branch information
manics committed Dec 15, 2023
1 parent 34996b3 commit e9106d8
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ module.exports = {
"jest/globals": true,
},
extends: ["eslint:recommended"],
ignorePatterns: ["**/dist"],
parser: "@babel/eslint-parser",
plugins: ["jest"],
rules: {},
Expand Down
1 change: 1 addition & 0 deletions examples/appendix/static/custom.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// eslint-disable-next-line no-unused-vars
function copy_link_into_clipboard(b) {
var $temp = $("<input>");
$(b).parent().append($temp);
Expand Down
2 changes: 1 addition & 1 deletion js/packages/binderhub-client/lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ export class BinderRepository {
this.eventSource = new EventSource(this.buildUrl);
return new EventIterator((queue) => {
this.eventIteratorQueue = queue;
this.eventSource.onerror = (err) => {
this.eventSource.onerror = () => {
queue.push({
phase: "failed",
message: "Failed to connect to event stream\n",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"scripts": {
"webpack": "webpack",
"webpack:watch": "webpack --watch",
"lint": "eslint binderhub/static/js",
"lint": "eslint .",
"test": "jest"
},
"jest": {
Expand Down

0 comments on commit e9106d8

Please sign in to comment.