Skip to content

Commit 3ccfd7c

Browse files
authored
docs: Add instructions for editor setup (eslint#131)
* docs: Add instructions for editor setup * Specifically mention WebStorm
1 parent b7461f1 commit 3ccfd7c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,28 @@ export default defineConfig([
237237

238238
**Note:** The Tailwind syntax doesn't currently provide for the `theme()` function. This is a [limitation of CSSTree](https://github.com/csstree/csstree/issues/292) that we hope will be resolved soon.
239239

240+
## Editor and IDE Setup
241+
242+
### Visual Studio Code
243+
244+
First, ensure you have the [ESLint plugin](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint) installed.
245+
246+
Then, edit `eslint.validate` in your `settings.json` file to include `css`:
247+
248+
```json
249+
{
250+
"eslint.validate": ["css"]
251+
}
252+
```
253+
254+
### JetBrains WebStorm
255+
256+
For any [JetBrains WebStorm](https://www.jetbrains.com/webstorm/), configure the [ESLint scope](https://www.jetbrains.com/help/webstorm/eslint.html#ws_eslint_configure_scope) to include `css`, such as:
257+
258+
```text
259+
**/*.{js,ts,jsx,tsx,cjs,cts,mjs,mts,html,vue,css}
260+
```
261+
240262
## License
241263

242264
Apache 2.0

0 commit comments

Comments
 (0)