Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mgechev/tslint-angular
Recommended tslint configuration for Angular applications.
https://github.com/mgechev/tslint-angular
angular codelyzer tslint
Last synced: 7 days ago
JSON representation
Recommended tslint configuration for Angular applications.
- Host: GitHub
- URL: https://github.com/mgechev/tslint-angular
- Owner: mgechev
- Created: 2018-01-06T18:00:46.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-08-14T22:25:57.000Z (over 4 years ago)
- Last Synced: 2025-01-01T23:41:11.497Z (11 days ago)
- Topics: angular, codelyzer, tslint
- Homepage:
- Size: 17.6 KB
- Stars: 160
- Watchers: 9
- Forks: 20
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- angular-awesome - Angular TSLint Preset
README
# Angular TSLint Preset
A preset with TSLint rules for development of Angular applications. The preset contains both, tslint core rules, and [codelyzer](https://github.com/mgechev/codelyzer) rules, which are going to perform Angular specific linting.
This package is based on the tslint configuration of [Angular CLI](https://github.com/angular/angular-cli) and aligns with the [Angular style guide](https://angular.io/guide/styleguide).
**Note:** there are few more rules added on top of the Angular CLI configuration.
## How to use?
```bash
npm i tslint-angular --save-dev
```After that configure `tslint.json` to use the preset:
```json
{
"extends": ["tslint-angular"],
"rules": {
"directive-selector": [true, "attribute", "foo", "camelCase"],
"component-selector": [true, "element", "foo", "kebab-case"]
}
}
```**Notice** that `directive-selector` and `component-selector` are configurable so you need to add them manually in the `rules` section of `tslint.json`.
## License
MIT