We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a17ade commit 6c5d51bCopy full SHA for 6c5d51b
README.md
@@ -133,22 +133,14 @@ For TypeScript:
133
134
```js
135
import js from "@eslint/js";
136
+import tseslint from "typescript-eslint";
137
import solid from "eslint-plugin-solid/configs/typescript";
-import * as tsParser from "@typescript-eslint/parser";
138
139
-export default [
+export default tseslint.config(
140
js.configs.recommended,
141
- {
142
- files: ["**/*.{ts,tsx}"],
143
- ...solid,
144
- languageOptions: {
145
- parser: tsParser,
146
- parserOptions: {
147
- project: "tsconfig.json",
148
- },
149
150
151
-];
+ tseslint.configs.recommended,
+ solid,
+);
152
```
153
154
These configurations do not configure global variables in ESLint. You can do this yourself manually
0 commit comments