What is/was the default js/html formatter in WebStorm?

Or even better, what is the closest eslint/prettier ruleset?

0
1 comment

The default formatter preferences are not based on any existing standards/ruleset

You can import code style preferences from ESLint (https://www.jetbrains.com/help/webstorm/2020.2/eslint.html#ws_js_linters_eslint_import_code_style_from_eslint) or prettier (https://www.jetbrains.com/help/webstorm/2020.2/prettier.html#ws_prettier_apply_code_style). But note that only core ESLint rules (indent, semi, quotes, etc) are applied when importing code style settings from ESLint. Same is true for Prettier - applying code style settings won't cause the IDE to match Prettier's code style exactly.
If you want the formatting to match exactly, you can set up ESLint or prettier to run on Save and use them instead of the built-in formatter

0

Please sign in to leave a comment.