Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/aurelienloyer/eslint-plugin-angular-template-use-track-by-or-aliases

Just a custom ESLint rule allowing usage of aliases for the rule @angular-eslint/template/use-track-by-function
https://github.com/aurelienloyer/eslint-plugin-angular-template-use-track-by-or-aliases

angular-eslint eslint-plugin eslint-rules hacktoberfest hacktoberfest-accepted hacktoberfest-accepted2022

Last synced: about 1 month ago
JSON representation

Just a custom ESLint rule allowing usage of aliases for the rule @angular-eslint/template/use-track-by-function

Awesome Lists containing this project

README

        

# ESLint plugin Angular template `use-track-by-or-aliases`

If you are using the awesome `@angular-eslint` plugin and especialy the rule `use-track-by-function` (https://github.com/angular-eslint/angular-eslint/blob/main/packages/eslint-plugin-template/src/rules/use-track-by-function.ts),
you will see that there is no possibility to custom this rule (link to rule configuration). Only params of criticy is allowed ('error', 'warn', ...)

This plugin is just a duplication of the existing rule but adding customisation with aliases ✨

## TODO

- [x] Generate repository
- [x] Init npm project
- [ ] Add documentations about
- [ ] Project
- [ ] How to use
- [ ] How to dev
- [ ] ...
- [x] Add rule
- [-] Add tests
- [ ] Add build script
- [ ] Use Github action to publish to NPM (Link to doc)
- [ ] Test the rule on real project

## Links

https://dev.to/mbarzeev/creating-a-custom-eslint-rule-with-tdd-120g
https://github.com/sagiavinash/eslint-plugin-organize-imports/blob/6aa2b2eb900d521983352da1120089333c3db404/tests/lib/rules/organize-imports.js#L5
https://eslint.org/docs/latest/user-guide/configuring/rules#configuring-rules
https://www.kenneth-truyers.net/2016/05/27/writing-custom-eslint-rules/
https://stevenpetryk.com/blog/custom-eslint-rules/
https://medium.com/bigpicture-one/writing-custom-typescript-eslint-rules-with-unit-tests-for-angular-project-f004482551db
https://www.thisdot.co/blog/improving-angular-ngfor-using-trackbyid-directive