Last active
July 13, 2022 07:51
-
-
Save greetclock/701439502256b9b02f17e9e1c35e493f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Full example | |
// https://github.com/greetclock/parts/blob/3eec90/package.json#L81-L89 | |
{ | |
"lint-staged": { | |
// JS and TS files go through ESLint first and then through prettier | |
"**/*.{js,ts}": [ | |
"eslint --fix", | |
"prettier --write --ignore-unknown" | |
], | |
// other files in the project are unknown to ESLint, so we use prettier only. | |
// Most commonly it's JSON, CSS, HTML files | |
"**/*": [ | |
"prettier --write --ignore-unknown" | |
] | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment