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: directories:
- "node_modules" - "node_modules"
script: script:
- yarn build:all - yarn prettier:check
- yarn lint:all - yarn lint:all
- yarn test:all - yarn test:all
- yarn build:all

View File

@ -36,6 +36,7 @@
"lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache", "lint:fix": "eslint \"**/*.{js,jsx,ts,tsx}\" --fix --cache",
"lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"", "lint:all": "eslint \"**/*.{js,jsx,ts,tsx}\"",
"prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --write", "prettify": "prettier \"**/*.{js,jsx,ts,tsx,json,css,html,md}\" --write",
"prettier:check": "prettier --check .",
"test": "jest --onlyChanged", "test": "jest --onlyChanged",
"test:all": "jest" "test:all": "jest"
}, },
@ -56,12 +57,6 @@
} }
}, },
"lint-staged": { "lint-staged": {
"*.{js,jsx,ts,tsx}": [ "**/*": ["eslint --fix", "prettier --write"]
"prettier --write",
"yarn lint:fix"
],
"*.{json,css,html,md}": [
"prettier --write"
]
} }
} }