6

I have done the following:

  1. Installed JavaScript Standard Style globally.
  2. Set the standard in the IntelliJ ESLint settings.
  3. Set the JavaScript code style as 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:

a space is required before closing bracket react/jsx-tag-spacing

When using IntelliJ auto format this hasn't been solved.

Any ideas how to fix this inconsistency?

  • IntelliJ Idea Ultimate 2017.2.4
  • Latest JavaScript code style.

1 Answer 1

0

Please try enabling Spaces/In empty tag in Settings | Editor | Code Style | HTML | Other

1
  • 1
    The "space is required" issue is not the only one I get, I'm looking for a robust way of doing this, so both settings will be consistent with each other.
    – GoldenAxe
    Commented Oct 20, 2017 at 22:31

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.