Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/aurelienloyer/eslint-plugin-angular-template-use-track-by-or-aliases
- Owner: AurelienLoyer
- License: mit
- Created: 2022-10-07T13:07:52.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-10-17T20:24:27.000Z (over 2 years ago)
- Last Synced: 2024-10-27T16:24:00.372Z (3 months ago)
- Topics: angular-eslint, eslint-plugin, eslint-rules, hacktoberfest, hacktoberfest-accepted, hacktoberfest-accepted2022
- Language: TypeScript
- Homepage:
- Size: 129 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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