From 98d7be174ca1b7578c41632f3b1a3f860ff1549f Mon Sep 17 00:00:00 2001 From: zanminkian Date: Fri, 6 Dec 2024 12:12:40 +0000 Subject: [PATCH] chore(eslint-config): remove useless tsconfigRootDir --- packages/eslint-config/src/config/ts/base.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/eslint-config/src/config/ts/base.ts b/packages/eslint-config/src/config/ts/base.ts index 64cdbb92..964046fc 100644 --- a/packages/eslint-config/src/config/ts/base.ts +++ b/packages/eslint-config/src/config/ts/base.ts @@ -1,4 +1,3 @@ -import process from "node:process"; import * as fengeTsPlugin from "@fenge/eslint-plugin-ts"; import tsParser from "@typescript-eslint/parser"; import { jsBase } from "../js/base.js"; @@ -75,7 +74,6 @@ export const tsBase = { parser: tsParser, // Unfortunately parser cannot be a string. Eslint should support it. https://eslint.org/docs/latest/use/configure/configuration-files-new#configuring-a-custom-parser-and-its-options parserOptions: { ...jsBase.languageOptions.parserOptions, - tsconfigRootDir: process.cwd(), // Setting `projectService: true` or `project: true` is pretty slow when lint a monorepo with many tsconfig.json files in each sub-app. // For a better performance, we are recommended using one tsconfig.json file in a project. // Waiting for typescript-eslint to officially provide a better way to use `projectService`.