platform icon indicating copy to clipboard operation
platform copied to clipboard

Add documentation for the ESLint rule signal-store-feature-should-use-generic-type

Open timdeschryver opened this issue 1 year ago • 3 comments

Information

The rule signal-store-feature-should-use-generic-type should be documented at https://github.com/ngrx/platform/blob/main/projects/ngrx.io/content/guide/eslint-plugin/rules/signal-store-feature-should-use-generic-type.md.

It should also contain one or more examples showcasing some "bad" and "good" snippets. For some examples we can take a look at the test cases at https://github.com/ngrx/platform/blob/main/modules/eslint-plugin/spec/rules/signals/signal-store-feature-should-use-generic-type.spec.ts

Documentation page

https://ngrx.io/guide/eslint-plugin/rules/signal-store-feature-should-use-generic-type

I would be willing to submit a PR to fix this issue

  • [ ] Yes
  • [ ] No

timdeschryver avatar Aug 21 '24 19:08 timdeschryver

@timdeschryver if you ok with that, I can make it same way I made it there https://github.com/ngrx/platform/blob/main/projects/ngrx.io/content/guide/eslint-plugin/rules/prefer-protected-state.md

ghost avatar Aug 24 '24 10:08 ghost

That would be awesome @paweltwardziak !

timdeschryver avatar Aug 24 '24 12:08 timdeschryver

Ok @timdeschryver, on it

ghost avatar Aug 24 '24 13:08 ghost

@timdeschryver Sorry for the delay, I've been a bit busy these past few days. Tomorrow I will raise my PR 👍

ghost avatar Sep 02 '24 19:09 ghost

@timdeschryver see #4515 I've updated prefer-protected-state.md in that PR as well - I am not sure whether or not this is something acceptable to mix a little PR responibilities. Let me knwo - I can split it into two commits :)

ghost avatar Sep 03 '24 15:09 ghost

@timdeschryver see #4515 I've updated prefer-protected-state.md in that PR as well - I am not sure whether or not this is something acceptable to mix a little PR responibilities. Let me knwo - I can split it into two commits :)

For this case it's fine. 😉

timdeschryver avatar Sep 03 '24 17:09 timdeschryver