Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

template-indent rule should have a setting to preserve trailing spaces #1868

Closed
mnaoumov opened this issue Jul 25, 2022 · 0 comments · Fixed by #1872
Closed

template-indent rule should have a setting to preserve trailing spaces #1868

mnaoumov opened this issue Jul 25, 2022 · 0 comments · Fixed by #1872

Comments

@mnaoumov
Copy link
Contributor

mnaoumov commented Jul 25, 2022

Sometimes you need to have a multiline string where trailing whitespaces are intentional

The plugin breaks the usecases of such strings.

template-indent

const str = dedent`
  Line 1 with trailing spaces___
  We use underscores to visualize spaces

  Previous line is intentionally left empty
`;

The plugin converts it to

const str = dedent`
  Line 1 with trailing spaces
  We use underscores to visualize spaces
  Previous line is intentionally left empty
`;

So the trailing spaces and blank lines are removed which breaks the usecase.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant