3.0.0 • Published 6 years ago
@carforyou/tslint-rules v3.0.0
CAR FOR YOU tslint rules
Usage
npm install -D typescript prettier tslint
npm install -D @carforyou/tslint-rulesIn tslint.json:
{
"extends": [
"@carforyou/tslint-rules"
]
}You will also need a tsconfig.json. The minimal would be:
{
"compilerOptions": {
"allowJs": true
}
}In your package.json, add the following scripts:
"scripts": {
"lint": "tslint --project tsconfig.json",
"format": "tslint --project tsconfig.json --fix"
}You can use a custom .prettierignore in your project
Development
npm run build && npm run lintDevelopment
You can link your local npm package to integrate it with any local project:
cd carforyou-tslint-rules-pkg/pkg
npm link
cd carforyou-listings-web
npm link @carforyou/tslint-rules
cd carforyou-tslint-rules-pkg
npm run buildRelease a new version
New versions are released on the ci using semantic-release as soon as you merge into master. Please make sure your merge commit message adheres to the corresponding conventions.