AccessibleForAll / AccessibleForAll/a11y-advent-calendar
Make Husky stage the formatted files
Abierto
- Lenguaje dominante
- TypeScript
- Estrellas
- 0
- Forks
- 0
- Merge medio
- 1 d 13 h
- PR fusionados (30 d)
- 22
Descripción
Minor fix, husky needs to stage the changed files after it runs npm run format and npm run lint. NOT let the commits of the old files go through.
step 1: npm install --save-dev lint-staged
step 2: add in package.json :
"lint-staged": {
"*.{js,jsx,ts,tsx}": ["eslint --fix", "prettier --write"],
"*.{scss,css,json,md}": ["prettier --write"]
}
step 3: replace the whole .husky/pre-commit to only have: npx lint-staged
This should do the trick.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.