Skip to content

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

License

Notifications You must be signed in to change notification settings

AurelienLoyer/eslint-plugin-angular-template-use-track-by-or-aliases

Repository files navigation

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

  • Generate repository
  • Init npm project
  • Add documentations about
    • Project
    • How to use
    • How to dev
    • ...
  • 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

About

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

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published