2 Commits

Author SHA1 Message Date
Kent C. Dodds
d16442c1f4 add npm-run-all --parallel 2019-11-12 17:41:09 -07:00
Kent C. Dodds
00eade470c add lint-staged 2019-11-12 17:40:22 -07:00
4 changed files with 1118 additions and 4 deletions

View File

@@ -1,5 +1,5 @@
{
"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"
]
}

1107
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -10,7 +10,7 @@
"prettier": "prettier --ignore-path .gitignore \"**/*.+(js|json|ts|tsx)\"",
"format": "npm run prettier -- --write",
"check-format": "npm run prettier -- --list-different",
"validate": "npm run check-types && npm run check-format && npm run lint && npm run build"
"validate": "npm-run-all --parallel check-types check-format lint build"
},
"devDependencies": {
"@babel/cli": "^7.7.0",
@@ -22,6 +22,8 @@
"eslint": "^6.6.0",
"eslint-config-prettier": "^6.5.0",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"typescript": "^3.7.2"
}