Skip to content

Commit dcf1256

Browse files
committed
Updated README.
1 parent 3f3a87c commit dcf1256

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ For TypeScript:
133133

134134
```js
135135
import js from "@eslint/js";
136-
import solid from 'eslint-plugin-solid/configs/typescript';
136+
import solid from "eslint-plugin-solid/configs/typescript";
137137
import * as tsParser from "@typescript-eslint/parser";
138138

139139
export default [
@@ -144,11 +144,11 @@ export default [
144144
languageOptions: {
145145
parser: tsParser,
146146
parserOptions: {
147-
project: 'tsconfig.json',
147+
project: "tsconfig.json",
148148
},
149149
},
150150
},
151-
]
151+
];
152152
```
153153

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

162+
Flat configs are also available as `plugin.configs['flat/recommended']` and `plugin.configs['flat/typescript']`, after using `import plugin from 'eslint-plugin-solid'`.
163+
162164
## Rules
163165

164166
✔: Enabled in the `recommended` configuration.

0 commit comments

Comments
 (0)