1 Commits

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

View File

@@ -1,5 +1,5 @@
{ {
"hooks": { "hooks": {
"pre-commit": "npm run validate" "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"
]
}

915
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -22,6 +22,7 @@
"eslint": "^6.6.0", "eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0", "eslint-config-prettier": "^6.5.0",
"husky": "^3.0.9", "husky": "^3.0.9",
"lint-staged": "^9.4.2",
"prettier": "^1.19.1", "prettier": "^1.19.1",
"typescript": "^3.7.2" "typescript": "^3.7.2"
} }