style: add prettier requirement

This commit is contained in:
Zachary Haber 2022-06-20 10:27:10 -05:00 committed by Lam Wei Li
parent cc722e301c
commit 0a67b7c1bd
No known key found for this signature in database
GPG Key ID: 90F6ABECF080D7BF
2 changed files with 5 additions and 1 deletions

3
.prettierignore Normal file
View File

@ -0,0 +1,3 @@
coverage
.github
.nyc_output

View File

@ -33,7 +33,8 @@
"node": ">=8.0"
},
"scripts": {
"pretest": "eslint \"lib/**/*.js\" \"test/**/*.js\"",
"pretest": "prettier --check . && eslint \"lib/**/*.js\" \"test/**/*.js\"",
"prettier:fix": "prettier --write .",
"test": "tap \"test/tap/**/*.js\" --cov --timeout=45",
"typings": "tsc -p types/tsconfig.json",
"codecov": "tap \"test/tap/**/*.js\" --cov --coverage-report=lcov && codecov"