From b01e5d352f2c34f22b243b47919b9e9ff1bc9259 Mon Sep 17 00:00:00 2001 From: Nathan Bierema Date: Tue, 18 Aug 2020 23:01:57 -0400 Subject: [PATCH] chore(*): change prettier hook --- .travis.yml | 3 ++- package.json | 9 ++------- 2 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.travis.yml b/.travis.yml index 8b1723df..ad7c8dcd 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,6 +7,7 @@ cache: directories: - "node_modules" script: - - yarn build:all + - yarn prettier:check - yarn lint:all - yarn test:all + - yarn build:all diff --git a/package.json b/package.json index ed590b14..1ef50fd4 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ "lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache", "lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"", "prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --write", + "prettier:check": "prettier --check .", "test": "jest --onlyChanged", "test:all": "jest" }, @@ -56,12 +57,6 @@ } }, "lint-staged": { - "*.{js,jsx,ts,tsx}": [ - "prettier --write", - "yarn lint:fix" - ], - "*.{json,css,html,md}": [ - "prettier --write" - ] + "**/*": ["eslint --fix", "prettier --write"] } }