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 6ba80cf
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@ module.exports = {
env: {
browser: true,
jquery: true,
node: true,
es6: true,
"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 6ba80cf

Please sign in to comment.