Reputation: 67350
Here's an image showing my TSLint config (right) and a warning (left). I know on the right it says to apply code style from TSLint, but even after I say "Yes," these warnings are still there.
I believe the "semicolon": [true, "never"]
means never require semicolons.
How do I get WebStorm to respect this setting to never use semicolons, and why isn't reading this setting from TSLint?
Upvotes: 1
Views: 641
Reputation: 93728
you can disable Unterminated statement inspection in Preferences | Editor | Inspections | JavaScript | Code style issues to get rid of the warning. Note that since 2017.1.x this inspection respects Preferences | Editor | Code Style | TypeScript | Punctuation settings: if use semicolons == Do not use, inspection only highlights suspicious statements. See https://youtrack.jetbrains.com/issue/WEB-24627 for details.
And importing code style settings from TSLint sets use semicolons to Do not use always if you have "semicolon": [true, "never"]
in your config. Did you try importing settings?
Upvotes: 0
Reputation: 178
That appears to be the IDE's code inspections, you can check if Unterminated statement
rule is enabled under Settings/Preferences -> Editor -> Inspections -> JavaScript -> Code style issues
. It ignores the rules in third-party linters.
Upvotes: 1