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

Fix on multiline comment with tab indentation #1920

Open
thorger opened this issue Jul 6, 2023 · 0 comments
Open

Fix on multiline comment with tab indentation #1920

thorger opened this issue Jul 6, 2023 · 0 comments

Comments

@thorger
Copy link

thorger commented Jul 6, 2023

What version of this package are you using?
https://standardjs.com/demo.html
same behaviour on local version

What happened?
Code with multiline comment tab indented:

    /**
     * some comment
     * 
     */

after using --fix returns:

/**
     * some comment
     */

removing only first tab and not reformatting / fixing next 2 lines.
Running 'npx standard' highlight those 2 lines as breaking eslint rules

What did you expect to happen?
Apply correct indentation to multi-line comment, removing tab characters and populating with spaces if required.
Currently, issue is highlighted but not fixed with '--' fix parameter.

Are you willing to submit a pull request to fix this bug?
Didn't considered it, might take a look if time allow.

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

No branches or pull requests

1 participant