@bytpher/tslint-ns-angular
Recommended tslint configuration for NativeScript Angular applications.
npm i --save @bytpher/tslint-ns-angular
- Version: 1.0.0
- GitHub: https://github.com/bytpher/tslint-ns-angular
- NPM: https://www.npmjs.com/package/%40bytpher%2Ftslint-ns-angular
- Downloads:
- Last Day: 0
- Last Week: 0
- Last Month: 0
TSLint NativeScript Angular
Recommended tslint configuration for NativeScript Angular applications.
Requirements
This package works with prettier for an quick and easy code format
npm i -D prettier prettier-tslint pretty-quick
Packages:
- prettier: Prettier is an opinionated code formatter
- prettier-tslint: Formats your TypeScript using
prettier
followed by `tslint --fix`` - pretty-quick: Runs Prettier on your changed files.
Installation
npm i -D @bytpher/tslint-ns-angular
Usage
{
"extends": ["@bytpher/tslint-ns-angular"]
}
Pre-Commit Hook
You can use husky to configure a pre-commit hook to run pretty-quick
npm i -D husky
Create a .huskyrc.json
in the root of yor project and add the following configuration
{
"hooks": {
"pre-commit": "pretty-quick --staged"
}
}
This configuration will run pretty-quick before each commit and formatting the staged files allowing us a seamless code format between all developers working in the project