diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..3ff683f --- /dev/null +++ b/.prettierignore @@ -0,0 +1,3 @@ +coverage +.github +.nyc_output diff --git a/package.json b/package.json index 89a9696..f0d2e3d 100644 --- a/package.json +++ b/package.json @@ -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"