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
+51-9Lines changed: 51 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,17 @@ migrate some React patterns to Solid code.
16
16
It's approaching a `1.0.0` release, and it's well tested and should be helpful in Solid projects
17
17
today.
18
18
19
+
<!-- AUTO-GENERATED-CONTENT:START (TOC) -->
20
+
-[Installation](#installation)
21
+
-[Configuration](#configuration)
22
+
-[TypeScript](#typescript)
23
+
-[Manual Configuration](#manual-configuration)
24
+
-[Flat Configuration](#flat-configuration)
25
+
-[Rules](#rules)
26
+
-[Troubleshooting](#troubleshooting)
27
+
-[Versioning](#versioning)
28
+
<!-- AUTO-GENERATED-CONTENT:END -->
29
+
19
30
## Installation
20
31
21
32
Install `eslint` and `eslint-plugin-solid` locally.
@@ -100,25 +111,53 @@ options you can set.
100
111
}
101
112
```
102
113
103
-
## Flat Configuration
114
+
###Flat Configuration
104
115
105
-
The configurations are also available [Flat Config](https://eslint.org/docs/latest/use/configure/configuration-files-new) objects. They use the `"files"` key to apply to their respective file extensions (`.js`, `.mjs` and `.jsx` for the recommended configuration; `.ts` and `.tsx` for the typescript configuration). Alternatively you can import `eslint-plugin-solid` directly for a manual configuration as described above.
These configurations do not configure global variables in ESLint. You can do this yourself manually or with a package like [globals](https://www.npmjs.com/package/globals) by creating a configuration with a `languageOptions.globals` object. We recommend setting up global variables for Browser APIs as well as at least ES2015.
132
+
For TypeScript:
120
133
121
-
Note for VSCode Extension: Enable the "Use Flat Config" setting for your workspace to enable Flat Config support.
0 commit comments