简体   繁体   English

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

[英]intellij ESlint + JavaScript Standard Style + Code Style Scheme none consistent

I have done the following: 我做了以下事情:

  1. Installed JavaScript Standard Style globally. 全局安装JavaScript标准样式
  2. Set the standard in the IntelliJ ESLint settings. 在IntelliJ ESLint设置中设置标准。
  3. Set the JavaScript code style as Set From-->Predefined Style-->JavaScript Standard Style . 将JavaScript代码样式设置Set From - > Predefined Style - > JavaScript Standard Style

When start coding (for example React Native), there is inconsistency between the code style loaded in ESlint and the Code Style used in IntelliJ, for example: 在开始编码时(例如React Native),ESlint中加载的代码样式与IntelliJ中使用的代码样式之间存在不一致,例如:

a space is required before closing bracket react/jsx-tag-spacing 在关闭括号react / jsx-tag-spacing之前需要一个空格

When using IntelliJ auto format this hasn't been solved. 使用IntelliJ自动格式时,这还没有解决。

Any ideas how to fix this inconsistency? 任何想法如何解决这种不一致?

  • IntelliJ Idea Ultimate 2017.2.4 IntelliJ Idea Ultimate 2017.2.4
  • Latest JavaScript code style. 最新的JavaScript代码风格。

Please try enabling Spaces/In empty tag in Settings | 请尝试在“设置”中启用Spaces / In空标记 Editor | 编辑| Code Style | 代码风格| HTML | HTML | Other 其他

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM