add lint-staged

This commit is contained in:
Kent C. Dodds
2019-07-31 21:28:16 -06:00
parent dbbb2064b7
commit 00eade470c
4 changed files with 923 additions and 4 deletions

9
.lintstagedrc Normal file
View File

@@ -0,0 +1,9 @@
{
"*.+(js|ts|tsx)": [
"eslint"
],
"*.+(js|json|ts|tsx)": [
"prettier --write",
"git add"
]
}