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
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,26 +170,26 @@ Flat configs are also available as `plugin.configs['flat/recommended']` and `plu
170
170
<!-- doc-gen RULES -->
171
171
| ✔ | 🔧 | Rule | Description |
172
172
| :---: | :---: | :--- | :--- |
173
-
| ✔ | 🔧 |[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. |
174
-
| ✔ | 🔧 |[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. |
175
-
| ✔ | 🔧 |[solid/imports](docs/imports.md)| Enforce consistent imports from "solid-js", "solid-js/web", and "solid-js/store". |
176
-
| ✔ ||[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. |
179
-
| ✔ ||[solid/jsx-uses-vars](docs/jsx-uses-vars.md)| Prevent variables used in JSX from being marked as unused. |
180
-
|||[solid/no-array-handlers](docs/no-array-handlers.md)| Disallow usage of type-unsafe event handlers. |
181
-
| ✔ | 🔧 |[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. |
182
-
| ✔ | 🔧 |[solid/no-innerhtml](docs/no-innerhtml.md)| Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities. |
183
-
|||[solid/no-proxy-apis](docs/no-proxy-apis.md)| Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them. |
184
-
| ✔ | 🔧 |[solid/no-react-deps](docs/no-react-deps.md)| Disallow usage of dependency arrays in `createEffect` and `createMemo`. |
185
-
| ✔ | 🔧 |[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. |
186
-
| ✔ ||[solid/no-unknown-namespaces](docs/no-unknown-namespaces.md)| Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`). |
187
-
|| 🔧 |[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. |
188
-
| ✔ | 🔧 |[solid/prefer-for](docs/prefer-for.md)| Enforce using Solid's `<For />` component for mapping an array to JSX elements. |
189
-
|| 🔧 |[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. |
190
-
| ✔ ||[solid/reactivity](docs/reactivity.md)| Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected. |
191
-
| ✔ | 🔧 |[solid/self-closing-comp](docs/self-closing-comp.md)| Disallow extra closing tags for components without children. |
192
-
| ✔ | 🔧 |[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. |
173
+
| ✔ | 🔧 |[solid/components-return-once](/packages/eslint-plugin-solid/docs/components-return-once.md)| Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX. |
174
+
| ✔ | 🔧 |[solid/event-handlers](/packages/eslint-plugin-solid/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. |
175
+
| ✔ | 🔧 |[solid/imports](/packages/eslint-plugin-solid/docs/imports.md)| Enforce consistent imports from "solid-js", "solid-js/web", and "solid-js/store". |
176
+
| ✔ ||[solid/jsx-no-duplicate-props](/packages/eslint-plugin-solid/docs/jsx-no-duplicate-props.md)| Disallow passing the same prop twice in JSX. |
| ✔ | 🔧 |[solid/jsx-no-undef](/packages/eslint-plugin-solid/docs/jsx-no-undef.md)| Disallow references to undefined variables in JSX. Handles custom directives. |
179
+
| ✔ ||[solid/jsx-uses-vars](/packages/eslint-plugin-solid/docs/jsx-uses-vars.md)| Prevent variables used in JSX from being marked as unused. |
180
+
|||[solid/no-array-handlers](/packages/eslint-plugin-solid/docs/no-array-handlers.md)| Disallow usage of type-unsafe event handlers. |
181
+
| ✔ | 🔧 |[solid/no-destructure](/packages/eslint-plugin-solid/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. |
182
+
| ✔ | 🔧 |[solid/no-innerhtml](/packages/eslint-plugin-solid/docs/no-innerhtml.md)| Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities. |
183
+
|||[solid/no-proxy-apis](/packages/eslint-plugin-solid/docs/no-proxy-apis.md)| Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them. |
184
+
| ✔ | 🔧 |[solid/no-react-deps](/packages/eslint-plugin-solid/docs/no-react-deps.md)| Disallow usage of dependency arrays in `createEffect` and `createMemo`. |
185
+
| ✔ | 🔧 |[solid/no-react-specific-props](/packages/eslint-plugin-solid/docs/no-react-specific-props.md)| Disallow usage of React-specific `className`/`htmlFor` props, which were deprecated in v1.4.0. |
186
+
| ✔ ||[solid/no-unknown-namespaces](/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md)| Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`). |
187
+
|| 🔧 |[solid/prefer-classlist](/packages/eslint-plugin-solid/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. |
188
+
| ✔ | 🔧 |[solid/prefer-for](/packages/eslint-plugin-solid/docs/prefer-for.md)| Enforce using Solid's `<For />` component for mapping an array to JSX elements. |
189
+
|| 🔧 |[solid/prefer-show](/packages/eslint-plugin-solid/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. |
190
+
| ✔ ||[solid/reactivity](/packages/eslint-plugin-solid/docs/reactivity.md)| Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected. |
191
+
| ✔ | 🔧 |[solid/self-closing-comp](/packages/eslint-plugin-solid/docs/self-closing-comp.md)| Disallow extra closing tags for components without children. |
192
+
| ✔ | 🔧 |[solid/style-prop](/packages/eslint-plugin-solid/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. |
Copy file name to clipboardExpand all lines: packages/eslint-plugin-solid/README.md
+20-20Lines changed: 20 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -170,26 +170,26 @@ Flat configs are also available as `plugin.configs['flat/recommended']` and `plu
170
170
<!-- doc-gen RULES -->
171
171
| ✔ | 🔧 | Rule | Description |
172
172
| :---: | :---: | :--- | :--- |
173
-
| ✔ | 🔧 |[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. |
174
-
| ✔ | 🔧 |[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. |
175
-
| ✔ | 🔧 |[solid/imports](docs/imports.md)| Enforce consistent imports from "solid-js", "solid-js/web", and "solid-js/store". |
176
-
| ✔ ||[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. |
179
-
| ✔ ||[solid/jsx-uses-vars](docs/jsx-uses-vars.md)| Prevent variables used in JSX from being marked as unused. |
180
-
|||[solid/no-array-handlers](docs/no-array-handlers.md)| Disallow usage of type-unsafe event handlers. |
181
-
| ✔ | 🔧 |[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. |
182
-
| ✔ | 🔧 |[solid/no-innerhtml](docs/no-innerhtml.md)| Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities. |
183
-
|||[solid/no-proxy-apis](docs/no-proxy-apis.md)| Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them. |
184
-
| ✔ | 🔧 |[solid/no-react-deps](docs/no-react-deps.md)| Disallow usage of dependency arrays in `createEffect` and `createMemo`. |
185
-
| ✔ | 🔧 |[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. |
186
-
| ✔ ||[solid/no-unknown-namespaces](docs/no-unknown-namespaces.md)| Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`). |
187
-
|| 🔧 |[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. |
188
-
| ✔ | 🔧 |[solid/prefer-for](docs/prefer-for.md)| Enforce using Solid's `<For />` component for mapping an array to JSX elements. |
189
-
|| 🔧 |[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. |
190
-
| ✔ ||[solid/reactivity](docs/reactivity.md)| Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected. |
191
-
| ✔ | 🔧 |[solid/self-closing-comp](docs/self-closing-comp.md)| Disallow extra closing tags for components without children. |
192
-
| ✔ | 🔧 |[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. |
173
+
| ✔ | 🔧 |[solid/components-return-once](/packages/eslint-plugin-solid/docs/components-return-once.md)| Disallow early returns in components. Solid components only run once, and so conditionals should be inside JSX. |
174
+
| ✔ | 🔧 |[solid/event-handlers](/packages/eslint-plugin-solid/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. |
175
+
| ✔ | 🔧 |[solid/imports](/packages/eslint-plugin-solid/docs/imports.md)| Enforce consistent imports from "solid-js", "solid-js/web", and "solid-js/store". |
176
+
| ✔ ||[solid/jsx-no-duplicate-props](/packages/eslint-plugin-solid/docs/jsx-no-duplicate-props.md)| Disallow passing the same prop twice in JSX. |
| ✔ | 🔧 |[solid/jsx-no-undef](/packages/eslint-plugin-solid/docs/jsx-no-undef.md)| Disallow references to undefined variables in JSX. Handles custom directives. |
179
+
| ✔ ||[solid/jsx-uses-vars](/packages/eslint-plugin-solid/docs/jsx-uses-vars.md)| Prevent variables used in JSX from being marked as unused. |
180
+
|||[solid/no-array-handlers](/packages/eslint-plugin-solid/docs/no-array-handlers.md)| Disallow usage of type-unsafe event handlers. |
181
+
| ✔ | 🔧 |[solid/no-destructure](/packages/eslint-plugin-solid/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. |
182
+
| ✔ | 🔧 |[solid/no-innerhtml](/packages/eslint-plugin-solid/docs/no-innerhtml.md)| Disallow usage of the innerHTML attribute, which can often lead to security vulnerabilities. |
183
+
|||[solid/no-proxy-apis](/packages/eslint-plugin-solid/docs/no-proxy-apis.md)| Disallow usage of APIs that use ES6 Proxies, only to target environments that don't support them. |
184
+
| ✔ | 🔧 |[solid/no-react-deps](/packages/eslint-plugin-solid/docs/no-react-deps.md)| Disallow usage of dependency arrays in `createEffect` and `createMemo`. |
185
+
| ✔ | 🔧 |[solid/no-react-specific-props](/packages/eslint-plugin-solid/docs/no-react-specific-props.md)| Disallow usage of React-specific `className`/`htmlFor` props, which were deprecated in v1.4.0. |
186
+
| ✔ ||[solid/no-unknown-namespaces](/packages/eslint-plugin-solid/docs/no-unknown-namespaces.md)| Enforce using only Solid-specific namespaced attribute names (i.e. `'on:'` in `<div on:click={...} />`). |
187
+
|| 🔧 |[solid/prefer-classlist](/packages/eslint-plugin-solid/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. |
188
+
| ✔ | 🔧 |[solid/prefer-for](/packages/eslint-plugin-solid/docs/prefer-for.md)| Enforce using Solid's `<For />` component for mapping an array to JSX elements. |
189
+
|| 🔧 |[solid/prefer-show](/packages/eslint-plugin-solid/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. |
190
+
| ✔ ||[solid/reactivity](/packages/eslint-plugin-solid/docs/reactivity.md)| Enforce that reactivity (props, signals, memos, etc.) is properly used, so changes in those values will be tracked and update the view as expected. |
191
+
| ✔ | 🔧 |[solid/self-closing-comp](/packages/eslint-plugin-solid/docs/self-closing-comp.md)| Disallow extra closing tags for components without children. |
192
+
| ✔ | 🔧 |[solid/style-prop](/packages/eslint-plugin-solid/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. |
0 commit comments