From 6c5d51b93b07d1d75ba35ba1aec5f8d326a13409 Mon Sep 17 00:00:00 2001 From: murshex <32241825+murshex@users.noreply.github.com> Date: Sat, 17 May 2025 19:29:46 -0400 Subject: [PATCH] Update ESLint config for TypeScript in README --- README.md | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) 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