https://github.com/monade/eslint-plugin-angular
A couple of quality-of-life eslint rules for Angular components.
https://github.com/monade/eslint-plugin-angular
Last synced: 8 months ago
JSON representation
A couple of quality-of-life eslint rules for Angular components.
- Host: GitHub
- URL: https://github.com/monade/eslint-plugin-angular
- Owner: monade
- License: mit
- Created: 2022-08-25T16:11:54.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2025-02-05T09:40:46.000Z (over 1 year ago)
- Last Synced: 2025-02-05T10:35:01.175Z (over 1 year ago)
- Language: JavaScript
- Size: 5.86 KB
- Stars: 0
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README

[](https://badge.fury.io/js/@monade%2Feslint-plugin-angular)
# @monade/eslint-plugin-angular
A couple of quality-of-life eslint rules for Angular components.
**THIS PROJECT IS UNDER ACTIVE DEVELOPMENT. IT MAY NOT WORK AS INTENDED**
## Usage
Install:
```bash
yarn add --dev @monade/eslint-plugin-angular
```
Add to your .eslint.js:
```javascript
plugins: [
...,
"@monade/angular"
]
...
rules: {
...,
"@monade/angular/remove-empty-styles": 2,
"@monade/angular/strategy-onpush": 2,
}
```
## Rules:
... **TODO** ...
## TODO:
* Document rules
* [Rule] When strategy is OnPush, show an error if there's a non-scalar property that is not ReadOnly<>
* [Rule] Component too long
* [Rule] Suggest strategy OnPush when the component is in the "components" folder
* [Rule] ADVANCED: Check if there's a reactivity bug with changeDetection: OnPush
## Contributing
You can use an AST view tool to debug the structure of some code parts:
* For Javascript: https://astexplorer.net/
* For Typescript: https://ts-ast-viewer.com/
About Monade
----------------

@monade/eslint-plugin-angular is maintained by [mònade srl](https://monade.io/en/home-en/).
We <3 open source software. [Contact us](https://monade.io/en/contact-us/) for your next project!