chore(*): change prettier hook

This commit is contained in:
Nathan Bierema 2020-08-18 23:01:57 -04:00
parent b8d3f47cca
commit b01e5d352f
2 changed files with 4 additions and 8 deletions

View File

@ -7,6 +7,7 @@ cache:
directories:
- "node_modules"
script:
- yarn build:all
- yarn prettier:check
- yarn lint:all
- yarn test:all
- yarn build:all

View File

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