Skip to content

Commit

Permalink
chore: fix eslint and run it on pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielcsapo committed Mar 13, 2022
1 parent cef6793 commit 280ca27
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ docs
fixtures
tmp
coverage
website
3 changes: 2 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"node": true
},
"parserOptions": {
"ecmaVersion": "2017"
"ecmaVersion": "latest",
"sourceType": "module"
}
}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

./node_modules/.bin/eslint .
./node_modules/.bin/pretty-quick --staged
1 change: 0 additions & 1 deletion bin/deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ process.on("unhandledRejection", (err) => {
); // eslint-disable-line
});

import ora from "ora";
import woof from "woof";
import { readFileSync } from "fs";
import updateNotifier from "update-notifier";
Expand Down
2 changes: 1 addition & 1 deletion lib/models/deployment.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import mongoose from "mongoose";
import http from "http";
import fs from "fs";
import path from "path";
import Docker from "dockerode";
const docker = new Docker({
socketPath: "/var/run/docker.sock",
Expand Down Expand Up @@ -394,6 +393,7 @@ class Deployment {
* @return {Promise}
*/
static logs({ name, token, username }) {
// eslint-disable-next-line no-async-promise-executor
return new Promise(async (resolve, reject) => {
try {
const user = await User.authenticate(username, token);
Expand Down

0 comments on commit 280ca27

Please sign in to comment.