CAR FOR YOU tslint rules
Usage
npm install -D typescript prettier tslint
npm install -D @carforyou/tslint-rules
In 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 lint
Development
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 build
Release 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.