-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
806c1d14 docs(eslint-plugin): add docs for signal-state-no-arrays-at-…
…root-level (#4549)
- Loading branch information
Showing
16 changed files
with
15 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
23cf7c41 chore: release 18.1.0 | ||
806c1d14 docs(eslint-plugin): add docs for signal-state-no-arrays-at-root-level (#4549) |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
2 changes: 1 addition & 1 deletion
2
generated/docs/guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
{ | ||
"id": "guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level", | ||
"title": "signal-state-no-arrays-at-root-level", | ||
"contents": "\n\n\n <div class=\"github-links\">\n <a href=\"https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level.md?message=docs%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n </div>\n\n\n<div class=\"content\">\n<h1 id=\"signal-state-no-arrays-at-root-level\">signal-state-no-arrays-at-root-level<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level#signal-state-no-arrays-at-root-level\"><i class=\"material-icons\">link</i></a></h1>\n<p>signalState should accept a record or dictionary as an input argument.</p>\n<ul>\n<li><strong>Type</strong>: problem</li>\n<li><strong>Fixable</strong>: No</li>\n<li><strong>Suggestion</strong>: No</li>\n<li><strong>Requires type checking</strong>: No</li>\n<li><strong>Configurable</strong>: No</li>\n</ul>\n<!-- Everything above this generated, do not edit -->\n<!-- MANUAL-DOC:START -->\n\n</div>\n\n<!-- links to this doc:\n-->\n<!-- links from this doc:\n - guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level#signal-state-no-arrays-at-root-level\n - https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level.md?message=docs%3A%20describe%20your%20change...\n-->" | ||
"contents": "\n\n\n <div class=\"github-links\">\n <a href=\"https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level.md?message=docs%3A%20describe%20your%20change...\" aria-label=\"Suggest Edits\" title=\"Suggest Edits\"><i class=\"material-icons\" aria-hidden=\"true\" role=\"img\">mode_edit</i></a>\n </div>\n\n\n<div class=\"content\">\n<h1 id=\"signal-state-no-arrays-at-root-level\">signal-state-no-arrays-at-root-level<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level#signal-state-no-arrays-at-root-level\"><i class=\"material-icons\">link</i></a></h1>\n<p>signalState should accept a record or dictionary as an input argument.</p>\n<ul>\n<li><strong>Type</strong>: problem</li>\n<li><strong>Fixable</strong>: No</li>\n<li><strong>Suggestion</strong>: No</li>\n<li><strong>Requires type checking</strong>: No</li>\n<li><strong>Configurable</strong>: No</li>\n</ul>\n<!-- Everything above this generated, do not edit -->\n<!-- MANUAL-DOC:START -->\n<h2 id=\"rule-details\">Rule Details<a title=\"Link to this heading\" class=\"header-link\" aria-hidden=\"true\" href=\"guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level#rule-details\"><i class=\"material-icons\">link</i></a></h2>\n<p>This rule ensure that a Signal State shouldn't accept an array type at the root level.</p>\n<p>Examples of <strong>correct</strong> code for this rule:</p>\n<code-example language=\"ts\">\nconst store = <a href=\"api/signals/withState\" class=\"code-anchor\">withState</a>({ foo: 'bar' });\n\nconst store = <a href=\"api/signals/withState\" class=\"code-anchor\">withState</a>({ arrayAsProperty: ['foo', 'bar'] })\n\nconst initialState = {};\nconst store = <a href=\"api/signals/signalStore\" class=\"code-anchor\">signalStore</a>(<a href=\"api/signals/withState\" class=\"code-anchor\">withState</a>(initialState));\n</code-example>\n<p>Examples of <strong>incorrect</strong> code for this rule:</p>\n<code-example language=\"ts\">\nconst store = <a href=\"api/signals/withState\" class=\"code-anchor\">withState</a>([1, 2, 3]);\n\nconst store = <a href=\"api/signals/withState\" class=\"code-anchor\">withState</a>([{ foo: 'bar' }]);\n\nconst store = <a href=\"api/signals/withState\" class=\"code-anchor\">withState</a><string[]>([]);\n\nconst initialState = [];\nconst store = <a href=\"api/signals/withState\" class=\"code-anchor\">withState</a>(initialState);\n</code-example>\n\n</div>\n\n<!-- links to this doc:\n-->\n<!-- links from this doc:\n - api/signals/signalStore\n - api/signals/withState\n - guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level#rule-details\n - guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level#signal-state-no-arrays-at-root-level\n - https://github.com/ngrx/platform/edit/main/projects/ngrx.io/content/guide/eslint-plugin/rules/signal-state-no-arrays-at-root-level.md?message=docs%3A%20describe%20your%20change...\n-->" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
+0 Bytes
(100%)
generated/zips/component-store-paginator-service/component-store-paginator-service.zip
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
generated/zips/component-store-paginator/component-store-paginator.zip
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
generated/zips/component-store-slide-toggle/component-store-slide-toggle.zip
Binary file not shown.
Binary file not shown.
Binary file modified
BIN
+0 Bytes
(100%)
generated/zips/router-store-selectors/router-store-selectors.zip
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.