I think this is it
This commit is contained in:
@@ -8,8 +8,7 @@
|
|||||||
"check-types": "tsc",
|
"check-types": "tsc",
|
||||||
"format": "npm run prettier -- --write",
|
"format": "npm run prettier -- --write",
|
||||||
"prettier": "prettier \"**/*.+(js|json|ts)\"",
|
"prettier": "prettier \"**/*.+(js|json|ts)\"",
|
||||||
"validate": "npm run lint && npm run prettier -- --list-different && npm run check-types",
|
"validate": "npm run lint && npm run prettier -- --list-different && npm run check-types"
|
||||||
"precommit": "npm run validate"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"babel-eslint": "11.0.0-beta.0",
|
"babel-eslint": "11.0.0-beta.0",
|
||||||
@@ -18,5 +17,10 @@
|
|||||||
"husky": "^3.0.2",
|
"husky": "^3.0.2",
|
||||||
"prettier": "^1.18.2",
|
"prettier": "^1.18.2",
|
||||||
"typescript": "^3.5.3"
|
"typescript": "^3.5.3"
|
||||||
|
},
|
||||||
|
"husky": {
|
||||||
|
"hooks": {
|
||||||
|
"pre-commit": "npm run validate"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
"*.js": [
|
"*.js": [
|
||||||
"eslint"
|
"eslint"
|
||||||
],
|
],
|
||||||
"*.+(js|json|ts|tsx|md)": [
|
"*.+(js|json|ts)": [
|
||||||
"prettier --write",
|
"prettier --write",
|
||||||
"git add"
|
"git add"
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user