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"] } }