Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workspace 出现 Parsing error: Cannot read file '/tsconfig.json' 如何解决 #114

Closed
xmsz-stu opened this issue Jul 30, 2023 · 1 comment

Comments

@xmsz-stu
Copy link

我的项目 turbo workspace
目录

  • apps/

然后我把f2eslimt装在根目录
运行

会提示

   0:0  error  Parsing error: Cannot read file '/tsconfig.json'

我设置了

"eslint.workingDirectories": [
    {
      "mode": "auto"
    }
  ],

但没有效果

@guoyunhe
Copy link
Collaborator

guoyunhe commented Apr 3, 2024

目前暂时不支持 monorepo 的项目,因为项目结构比较复杂。目前可用的建议:

  1. 在项目根目录创建一个 tsconfig.json 文件,运行 npx f2elint@latest 初始化,升级最新版本
  2. apps/ 下的每个应用中都运行 npx f2elint@latest 初始化

@guoyunhe guoyunhe closed this as completed Apr 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants