tslint-config-lalilo
v1.1.0
Published
Lalilo shared tslint rules
Downloads
10
Readme
tslint-config-lalilo
Lalilo shared tslint rules.
install
yarn add --dev tslint tslint-config-lalilo tslint-config-prettier
Then 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-quick
In 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 --major
Then:
git push
CircleCI 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 link
In the repo where you use this package run:
yarn link tslint-config-lalilo