From c059ac84d0c5356367640eb858d732fe5ca96005 Mon Sep 17 00:00:00 2001 From: Nick Schonning Date: Fri, 17 Dec 2021 19:50:02 -0500 Subject: [PATCH] chore: prettier all files with lint-staged Run for all files in lint-staged, and check on CI through `lint` --- package.json | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index c332849f..7d2f46be 100644 --- a/package.json +++ b/package.json @@ -25,22 +25,15 @@ "format": "prettier --write . && npm run lint -- --fix", "lint": "npm-run-all \"lint:*\"", "lint:eslint-docs": "npm run update:eslint-docs && git diff --exit-code", - "lint:js": "eslint --report-unused-disable-directives .", + "lint:js": "eslint --report-unused-disable-directives . && prettier --check .", "prepare": "husky install", "test": "jest --coverage", "update:eslint-docs": "eslint-doc-generator && npm run format" }, "lint-staged": { - "{README.md,CONTRIBUTING.md}": [ - "doctoc --maxlevel 3 --notitle" - ], - "*.js": [ - "prettier --write", - "eslint --report-unused-disable-directives --fix" - ], - "*.+(json|md)": [ - "prettier --write" - ] + "*": "prettier --write --ignore-unknown", + "{README.md,CONTRIBUTING.md}": "doctoc --maxlevel 3 --notitle", + "*.js": "eslint --report-unused-disable-directives --fix" }, "prettier": { "proseWrap": "always",