Compare commits
2 Commits
tjs/step-1
...
tjs/step-1
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d16442c1f4 | ||
|
|
00eade470c |
2
.huskyrc
2
.huskyrc
@@ -1,5 +1,5 @@
|
||||
{
|
||||
"hooks": {
|
||||
"pre-commit": "npm run validate"
|
||||
"pre-commit": "npm run check-types && lint-staged"
|
||||
}
|
||||
}
|
||||
|
||||
9
.lintstagedrc
Normal file
9
.lintstagedrc
Normal file
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"*.+(js|ts|tsx)": [
|
||||
"eslint"
|
||||
],
|
||||
"*.+(js|json|ts|tsx)": [
|
||||
"prettier --write",
|
||||
"git add"
|
||||
]
|
||||
}
|
||||
1107
package-lock.json
generated
1107
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@@ -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"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user