Open pirosikick opened 5 years ago
$ npm i -D prettier typescript tslint tslint-config-prettier husky lint-staged ts-jest @types/jest
$ yarn tsc --init
$ yarn ts-jest config:init
$ yarn ts-lint --init
.prettierrc.json
{
"singleQuote": true
}
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{ts,tsx}": [
"tslint --fix",
"prettier --write",
"git add"
],
"*.{js,json,md}": [
"prettier --write",
"git add"
]
}