You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -73,6 +73,7 @@ would like to use.
73
73
| :---: | :---: | :--- | :--- |
74
74
| ✔ | 🔧 |[solid/jsx-no-undef](docs/jsx-no-undef.md)| Disallow references to undefined variables in JSX. Handles custom directives. |
75
75
| ✔ ||[solid/jsx-uses-vars](docs/jsx-uses-vars.md)| Prevent variables used in JSX from being marked as unused. |
76
+
| ✔ | 🔧 |[solid/no-destructure](docs/no-destructure.md)| Prevent destructuring props. In Solid, props must be used with property accesses (`props.foo`) to preserve reactivity. This rule only tracks destructuring in the parameter list. |
76
77
| ✔ | 🔧 |[solid/no-innerhtml](docs/no-innerhtml.md)| Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities. |
77
78
| ✔ | 🔧 |[solid/no-react-specific-props](docs/no-react-specific-props.md)| Disallow usage of React-specific `className`/`htmlFor` props (though they are supported for compatibility). |
78
79
| ✔ ||[solid/no-unknown-namespaces](docs/no-unknown-namespaces.md)| Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`). |
Copy file name to clipboardExpand all lines: docs/no-destructure.md
+166-2Lines changed: 166 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,9 @@
1
1
<!-- AUTO-GENERATED-CONTENT:START (HEADER) -->
2
+
# solid/no-destructure
3
+
Prevent destructuring props. In Solid, props must be used with property accesses (`props.foo`) to preserve reactivity. This rule only tracks destructuring in the parameter list.
0 commit comments