git config --list
git config --local core.editor code
git config --local --edit
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
editor = code --wait
[alias]
s = !git status -s
c = !git add --all && git commit -m
l = !git log --pretty=format:'%C(blue)%h%C(red)%d %C(white)%s - %C(cyan)%cn, %C(green)%cr'
git-commit-msg-linter
typescript @types/node
husky
lint-staged
jest @types/jest ts-jest
tsconfiguration.json
{
"compilerOptions": {
"outDir": "./dist",
"module": "commonjs",
"target": "ES2019",
"esModuleInterop": true,
"allowJs": true,
}
}
.eslintrc.json
{
"extends": "standard-with-typescript",
"parserOptions":{
"project": "./tsconfig"
}
}
.huskyrc.json
{
"hooks":{
"pre-commit": "lint-staged"
}
}
.lintstagedrc.json
{
"*.ts":[
"eslint 'src/**' --fix"
]
}