diff --git a/README.md b/README.md index a8b5d95..ed8fe9f 100644 --- a/README.md +++ b/README.md @@ -133,22 +133,14 @@ For TypeScript: ```js import js from "@eslint/js"; +import tseslint from "typescript-eslint"; import solid from "eslint-plugin-solid/configs/typescript"; -import * as tsParser from "@typescript-eslint/parser"; -export default [ +export default tseslint.config( js.configs.recommended, - { - files: ["**/*.{ts,tsx}"], - ...solid, - languageOptions: { - parser: tsParser, - parserOptions: { - project: "tsconfig.json", - }, - }, - }, -]; + tseslint.configs.recommended, + solid, +); ``` These configurations do not configure global variables in ESLint. You can do this yourself manually