intellij ESlint + JavaScript标准样式+代码样式方案不一致

Gol*_*Axe 6 javascript coding-style intellij-idea code-standards react-native

我已经完成以下工作:

  1. 全局安装了JavaScript标准样式
  2. 在IntelliJ ESLint设置中设置标准。
  3. 将JavaScript代码样式设置Set From-> Predefined Style-> JavaScript Standard Style

开始编码(例如React Native)时,ESlint中加载的代码样式与IntelliJ中使用的代码样式之间存在不一致,例如:

在关闭方括号react / jsx-tag-spacing之前需要一个空格

使用IntelliJ自动格式时,此问题尚未解决。

任何想法如何解决此矛盾?

  • IntelliJ Idea Ultimate 2017.2.4版本
  • 最新的JavaScript代码样式。

len*_*ena 0

请尝试在设置 |中启用Spaces/In 空标签 编辑| 代码风格| HTML | 其他