Skip to content

Commit

Permalink
Upgrade prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
joelpurra committed Jun 9, 2021
1 parent c3a5973 commit 04f5624
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 13 deletions.
6 changes: 3 additions & 3 deletions .huskyrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
const tasks = arr => arr.join(" && ");
const tasks = (arr) => arr.join(" && ");

module.exports = {
hooks: {
"pre-commit": tasks(["npm run --silent test", "npm run --silent lint"])
}
"pre-commit": tasks(["npm run --silent test", "npm run --silent lint"]),
},
};
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@
"rebuild": "npm run --silent clean && npm run --silent build",
"test": "npm run --silent lint:fast",
"lint": "npm run --silent lint:full",
"lint:fast": "npm run --silent prettier && npm run --silent lint:copyright",
"lint:fast": "npm run --silent lint:prettier && npm run --silent lint:copyright",
"lint:full": "npm run --silent lint:fast",
"lint:fix": "npm run --silent prettier:fix",
"lint:fix": "npm run --silent lint:prettier:fix",
"lint:copyright": "find . -not \\( -path './.git/*' -or -path './node_modules/*' \\) -type f \\( -iname '*.js' -and -not \\( -path './.huskyrc.js' -or -path './lib/libuvc.js' -or -path './dependencies/build/*' -or -path './test/stream-disk/stream-disk.js' \\) \\) -print0 | xargs -0 grep -L 'This file is part of node-libuvc' | sed 's/^/File is missing copyright notice: /'",
"prettier": "prettier --list-different './**/*.js' './**/*.json' './**/*.md' '!./lib/libuvc.js'",
"prettier:fix": "prettier --write './**/*.js' './**/*.json' './**/*.md' '!./lib/libuvc.js'"
"lint:prettier": "prettier --list-different './**/*.js' './**/*.json' './**/*.md' '!./lib/libuvc.js'",
"lint:prettier:fix": "prettier --write './**/*.js' './**/*.json' './**/*.md' '!./lib/libuvc.js'"
},
"dependencies": {
"ffi-napi": "^4.0.3",
Expand All @@ -33,7 +33,7 @@
"cmake-js": "^6.1.0",
"ffi-generate": "github:node-ffi-packager/node-ffi-generate#ffi-napi",
"husky": "^4.2.3",
"prettier": "^1.19.1",
"prettier": "^2.3.1",
"rimraf": "^3.0.2"
},
"engines": {
Expand Down
4 changes: 2 additions & 2 deletions test/stream-disk/stream-disk.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ const libuvc = require("../../");
const finished = util.promisify(stream.finished);
const voidPtr = ref.refType(ref.types.void);

const sleep = async s =>
new Promise(resolve => {
const sleep = async (s) =>
new Promise((resolve) => {
setTimeout(resolve, s * 1000);
});

Expand Down

0 comments on commit 04f5624

Please sign in to comment.