create-react-app - 通过 CRA 在服务器文件上使用 ESLint
问题描述
backend
在 VS Code 中 - 当运行 CRA 并使用和目录设置简单的文件结构时frontend
,ESLint 会自动检查前端(React)文件,但backend
服务器文件中没有语法突出显示。
我们已经在项目的不同位置(根等)尝试了多个 .eslintrc.js 文件,但文件的语法突出显示(错误、警告)backend
没有发生。
在非反应项目中,这在 VS Code 中工作正常,.eslintrc.js
根目录中有一个文件。
CRA 配置是否覆盖任何其他配置?
我们已经尝试过,例如:
Adding the following snippet to settings.json in VS code
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact"
],
但这没有任何区别。
解决方案
推荐阅读
- java - 如何使用 do while 循环将用户输入转换为星号?
- python - DataFrame(Flask)中的链接
- iframe - Electron - 绕过同源中的 X-Frame 选项
- google-apps-script - Google Analytics API 教程问题
- c# - 在 Powershell 中打开加密密钥不在 C# 中
- sql - 通过连接表进行排序和计数的 SELECT
- nginx - Nginx $connections_active 每个服务器块
- c - 为什么我的第二个子进程在我的第一个子进程之前被击中?
- ios - iOS PDFKit 没有填充 UIView
- python - 有没有办法将 yaml 转换为数据框?或者以某种方式展平或规范化许多呈现为 JSON 的数据集?