2 Commits

Author SHA1 Message Date
Kent C. Dodds
00eade470c add lint-staged 2019-11-12 17:40:22 -07:00
Kent C. Dodds
dbbb2064b7 add husky 2019-11-12 17:39:35 -07:00
4 changed files with 1318 additions and 2 deletions

5
.huskyrc Normal file
View File

@@ -0,0 +1,5 @@
{
"hooks": {
"pre-commit": "npm run check-types && lint-staged"
}
}

9
.lintstagedrc Normal file
View File

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

1304
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -21,6 +21,8 @@
"@typescript-eslint/parser": "^2.7.0",
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"prettier": "^1.19.1",
"typescript": "^3.7.2"
}