Webstorm doesn't apply eslint settings when formatting
So I moved from TSlint to ESLint, but I'm running into some issues.
ESlint sets the max-length to 140, Webstorm gives me a proper error ESLint: This line has a length of 151. Maximum allowed is 140.(max-len) yet when I run auto format, right click > Fix ESlint Problems it doesn't format it. Reformat code doesn't work either, Ctrl + Alt + L
I've ran, Apply eslint code style rules
Please sign in to leave a comment.
The rule is imported as expected for me - it changes
Code Style | JavaScript | Wrapping and Braces | Hard wrap at
to the specified value; but note that this option is not always applied on formatting, it only affects those elements that are set up to be wrapped if longHi Elena,
Also using this: https://github.com/angular-eslint/angular-eslint ?
the core ESLint rules should still be imported. But note that this only works for javascript; until https://youtrack.jetbrains.com/issue/WEB-34655 is fixed (fix will be available in the upcoming 2020.3 release), please try a workaround from https://youtrack.jetbrains.com/issue/WEB-34655#focus=streamItem-27-3055459.0-0: import code style rules from ESLint and then in Settings | Editor | Code Style | TypeScript choose Set From -> JavaScript