React Native:Prettier 停止在 VSCode 中添加下划线

问题描述 投票:0回答:0

我使用的是 VSCode 1.78.1 版和 React Native 0.69.10 版。我在全球范围内启用了

ESLint
Prettier ESLint
VSCode 扩展。以前他们按预期工作,用红色强调 linting 错误,提示更正等。我不确定他们什么时候停止工作,但现在他们不强调任何东西。我尝试卸载/重新安装这两个扩展,重新启动 VSCode 等。这可能是在我升级 React Native 版本时发生的,不确定。

我可以采取其他故障排除步骤来解决这个问题吗?

我的

.prettierc.js
文件如下所示:

module.exports = {
  arrowParens: 'avoid',
  bracketSameLine: true,
  bracketSpacing: false,
  singleQuote: true,
  trailingComma: 'all',
  tabWidth: 4,
};
react-native vscode-extensions prettier prettier-eslint prettier-vscode
© www.soinside.com 2019 - 2024. All rights reserved.