Skip to content

Commit

Permalink
Updated README.
Browse files Browse the repository at this point in the history
  • Loading branch information
joshwilsonvu committed Apr 14, 2024
1 parent 3f3a87c commit dcf1256
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ For TypeScript:

```js
import js from "@eslint/js";
import solid from 'eslint-plugin-solid/configs/typescript';
import solid from "eslint-plugin-solid/configs/typescript";
import * as tsParser from "@typescript-eslint/parser";

export default [
Expand All @@ -144,11 +144,11 @@ export default [
languageOptions: {
parser: tsParser,
parserOptions: {
project: 'tsconfig.json',
project: "tsconfig.json",
},
},
},
]
];
```

These configurations do not configure global variables in ESLint. You can do this yourself manually
Expand All @@ -159,6 +159,8 @@ as well as at least ES2015.
Note for the ESLint VSCode Extension: Enable the "Use Flat Config" setting for your workspace to
enable Flat Config support.

Flat configs are also available as `plugin.configs['flat/recommended']` and `plugin.configs['flat/typescript']`, after using `import plugin from 'eslint-plugin-solid'`.

## Rules

✔: Enabled in the `recommended` configuration.
Expand Down

0 comments on commit dcf1256

Please sign in to comment.