1.1.0 • Published 7 years ago
tslint-config-lalilo v1.1.0
tslint-config-lalilo
Lalilo shared tslint rules.
install
yarn add --dev tslint tslint-config-lalilo tslint-config-prettierThen create a file tslint.json
{
"extends": ["tslint-config-lalilo"]
}lint integration
We recommend you also set up these points:
make sure lint script is setup and run during continuous integration
{
"scripts": {
"tslint": "tslint --project ."
}
}automatically lint before commit
yarn add --dev lint-staged husky pretty-quickIn package.json:
{
"lint-staged": {
"*.{js,ts}": ["tslint --fix", "git add"]
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged && lint-staged"
}
}
}how to deploy a new version?
Pick one of these commands:
yarn version --patch
yarn version --minor
yarn version --majorThen:
git pushCircleCI takes care of deploying to npm registry from tagged commits (yarn version tags the commit).
how to test the config locally?
In this repo run:
yarn linkIn the repo where you use this package run:
yarn link tslint-config-lalilo