简体   繁体   English

如何检测 NextJS 项目中的所有 Typescript 和 ESLint 错误,而不仅仅是在打开的文件中?

[英]How to detect all Typescript and ESLint errors in NextJS project, not just in opened files?

I am working on a NextJS project and I want to see the errors and warnings from all the project, not just from opened files.我正在处理 NextJS 项目,我想查看所有项目的错误和警告,而不仅仅是打开的文件。

How can I do this?我怎样才能做到这一点?

I'm assuming your using vscode.我假设您使用的是 vscode。 There is an experimental feature which is described in this answer which can enable project wide checks:答案中描述了一个实验性功能,可以启用项目范围的检查:

"typescript.tsserver.experimental.enableProjectDiagnostics": true

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 ESLint 检查 React/Typescript 项目中的 prop 错误? - How do you check for prop errors in a React/Typescript project with ESLint? .js 文件上的 eslint 错误 - eslint errors on .js files 如何强制编译并忽略@typescript-eslint 错误? - How to force a compilation and ignore @typescript-eslint errors? 带有子文件夹的 typescript 项目中的 eslint 配置 - eslint configuration in a typescript project with subfolders React 类型文件在 React TypeScript (.tsx) 文件中不起作用 - 为 React 组件抛出 ESLint 错误 - React types files not working in React TypeScript (.tsx) file - Throwing ESLint errors for React Component 使用ESlint整理React + Typescript项目 - Linting React+Typescript project with ESlint 如何在 eslint 中忽略所有没有扩展名的文件 - How can I ignore all files without an extension in eslint 如何使用 typescript 在 react/nextjs 中使用上下文 - how to useContext in react/nextjs with typescript 如何修复 Eslint 错误:在我的 React Typescript 项目中,“默认”被限制用作导出名称 - How to fix Eslint error: 'default' is restricted from being used as an exported name in my React Typescript project React / NextJS - onClick 以所有映射项目为目标 - 我如何只针对一个? - React / NextJS - onClick targets all mapped items - how do i target just one?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM