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
| ✔ | 🔧 |[solid/components-return-once](docs/components-return-once.md)| Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX. |
126
-
| ✔ | 🔧 |[solid/event-handlers](docs/event-handlers.md)| Enforce naming DOM element event handlers consistently and prevent Solid's analysis from misunderstanding whether a prop should be an event handler. |
127
-
| ✔ | 🔧 |[solid/imports](docs/imports.md)| Enforce consistent imports from "solid-js", "solid-js/web", and "solid-js/store". |
128
-
| ✔ ||[solid/jsx-no-duplicate-props](docs/jsx-no-duplicate-props.md)| Disallow passing the same prop twice in JSX. |
| ✔ | 🔧 |[solid/jsx-no-undef](docs/jsx-no-undef.md)| Disallow references to undefined variables in JSX. Handles custom directives. |
131
-
| ✔ ||[solid/jsx-uses-vars](docs/jsx-uses-vars.md)| Prevent variables used in JSX from being marked as unused. |
132
-
| ✔ | 🔧 |[solid/no-destructure](docs/no-destructure.md)| Disallow 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. |
133
-
| ✔ | 🔧 |[solid/no-innerhtml](docs/no-innerhtml.md)| Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities. |
134
-
| ✔ | 🔧 |[solid/no-react-specific-props](docs/no-react-specific-props.md)| Disallow usage of React-specific `className`/`htmlFor` props, which were deprecated in v1.4.0. |
135
-
| ✔ ||[solid/no-unknown-namespaces](docs/no-unknown-namespaces.md)| Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`). |
136
-
| ✔ | 🔧 |[solid/prefer-classlist](docs/prefer-classlist.md)| Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames. |
137
-
| ✔ | 🔧 |[solid/prefer-for](docs/prefer-for.md)| Enforce using Solid's `<For />` component for mapping an array to JSX elements. |
138
-
| ✔ | 🔧 |[solid/prefer-show](docs/prefer-show.md)| Enforce using Solid's `<Show />` component for conditionally showing content. Solid's compiler covers this case, so it's a stylistic rule only. |
139
-
| ✔ ||[solid/reactivity](docs/reactivity.md)| Enforce that reactive expressions (props, signals, memos, etc.) are only used in tracked scopes; otherwise, they won't update the view as expected. |
140
-
| ✔ | 🔧 |[solid/self-closing-comp](docs/self-closing-comp.md)| Disallow extra closing tags for components without children. |
141
-
| ✔ | 🔧 |[solid/style-prop](docs/style-prop.md)| Require CSS properties in the `style` prop to be valid and kebab-cased (ex. 'font-size'), not camel-cased (ex. 'fontSize') like in React, and that property values with dimensions are strings, not numbers with implicit 'px' units. |
142
-
122
+
| ✔ | 🔧 | Rule | Description |
123
+
| :---: | :---: | :--- | :--- |
124
+
| ✔ | 🔧 |[solid/components-return-once](docs/components-return-once.md)| Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX. |
125
+
| ✔ | 🔧 |[solid/event-handlers](docs/event-handlers.md)| Enforce naming DOM element event handlers consistently and prevent Solid's analysis from misunderstanding whether a prop should be an event handler. |
126
+
| ✔ | 🔧 |[solid/imports](docs/imports.md)| Enforce consistent imports from "solid-js", "solid-js/web", and "solid-js/store". |
127
+
| ✔ ||[solid/jsx-no-duplicate-props](docs/jsx-no-duplicate-props.md)| Disallow passing the same prop twice in JSX. |
| ✔ | 🔧 |[solid/jsx-no-undef](docs/jsx-no-undef.md)| Disallow references to undefined variables in JSX. Handles custom directives. |
130
+
| ✔ ||[solid/jsx-uses-vars](docs/jsx-uses-vars.md)| Prevent variables used in JSX from being marked as unused. |
131
+
| ✔ | 🔧 |[solid/no-destructure](docs/no-destructure.md)| Disallow 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. |
132
+
| ✔ | 🔧 |[solid/no-innerhtml](docs/no-innerhtml.md)| Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities. |
133
+
| ✔ | 🔧 |[solid/no-react-specific-props](docs/no-react-specific-props.md)| Disallow usage of React-specific `className`/`htmlFor` props, which were deprecated in v1.4.0. |
134
+
| ✔ ||[solid/no-unknown-namespaces](docs/no-unknown-namespaces.md)| Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`). |
135
+
| ✔ | 🔧 |[solid/prefer-classlist](docs/prefer-classlist.md)| Enforce using the classlist prop over importing a classnames helper. The classlist prop accepts an object `{ [class: string]: boolean }` just like classnames. |
136
+
| ✔ | 🔧 |[solid/prefer-for](docs/prefer-for.md)| Enforce using Solid's `<For />` component for mapping an array to JSX elements. |
137
+
| ✔ | 🔧 |[solid/prefer-show](docs/prefer-show.md)| Enforce using Solid's `<Show />` component for conditionally showing content. Solid's compiler covers this case, so it's a stylistic rule only. |
138
+
| ✔ ||[solid/reactivity](docs/reactivity.md)| Enforce that reactive expressions (props, signals, memos, etc.) are only used in tracked scopes; otherwise, they won't update the view as expected. |
139
+
| ✔ | 🔧 |[solid/self-closing-comp](docs/self-closing-comp.md)| Disallow extra closing tags for components without children. |
140
+
| ✔ | 🔧 |[solid/style-prop](docs/style-prop.md)| Require CSS properties in the `style` prop to be valid and kebab-cased (ex. 'font-size'), not camel-cased (ex. 'fontSize') like in React, and that property values with dimensions are strings, not numbers with implicit 'px' units. |
143
141
<!-- AUTO-GENERATED-CONTENT:END -->
144
142
145
143
## Versioning
@@ -149,10 +147,8 @@ stable across patch (`0.0.x`) versions, but may change across minor (`0.x`) vers
149
147
If you want to pin a minor version, use a tilde in your `package.json`.
0 commit comments