Skip to content

Commit 280ca27

Browse files
committed
chore: fix eslint and run it on pre-commit
1 parent cef6793 commit 280ca27

File tree

5 files changed

+5
-3
lines changed

5 files changed

+5
-3
lines changed

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ docs
33
fixtures
44
tmp
55
coverage
6+
website

.eslintrc

+2-1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"node": true
77
},
88
"parserOptions": {
9-
"ecmaVersion": "2017"
9+
"ecmaVersion": "latest",
10+
"sourceType": "module"
1011
}
1112
}

.husky/pre-commit

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
#!/bin/sh
22
. "$(dirname "$0")/_/husky.sh"
33

4+
./node_modules/.bin/eslint .
45
./node_modules/.bin/pretty-quick --staged

bin/deploy.js

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ process.on("unhandledRejection", (err) => {
66
); // eslint-disable-line
77
});
88

9-
import ora from "ora";
109
import woof from "woof";
1110
import { readFileSync } from "fs";
1211
import updateNotifier from "update-notifier";

lib/models/deployment.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import mongoose from "mongoose";
22
import http from "http";
33
import fs from "fs";
4-
import path from "path";
54
import Docker from "dockerode";
65
const docker = new Docker({
76
socketPath: "/var/run/docker.sock",
@@ -394,6 +393,7 @@ class Deployment {
394393
* @return {Promise}
395394
*/
396395
static logs({ name, token, username }) {
396+
// eslint-disable-next-line no-async-promise-executor
397397
return new Promise(async (resolve, reject) => {
398398
try {
399399
const user = await User.authenticate(username, token);

0 commit comments

Comments
 (0)