Skip to content

Commit

Permalink
chore(eslint-config): remove useless tsconfigRootDir
Browse files Browse the repository at this point in the history
  • Loading branch information
zanminkian committed Dec 6, 2024
1 parent f1336f9 commit 98d7be1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions packages/eslint-config/src/config/ts/base.ts
Original file line number Diff line number Diff line change
@@ -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";
Expand Down Expand Up @@ -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`.
Expand Down

0 comments on commit 98d7be1

Please sign in to comment.