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

ESLint bad indentation #54

Open
kekkokk opened this issue Sep 6, 2021 · 2 comments
Open

ESLint bad indentation #54

kekkokk opened this issue Sep 6, 2021 · 2 comments

Comments

@kekkokk
Copy link

kekkokk commented Sep 6, 2021

The idea to use // #code as a "placeholder" to make eslint works is very appreciated but substituting // #code with spaces lead eslint to complain about the fact that expected indentation was 0 but found 9.

I think we just should replace with "" to maintain the real intended indentation

lines[t] = " ".repeat(r.groups.before.length) + r.groups.line;

@nippur72
Copy link
Owner

nippur72 commented Sep 7, 2021

unfortunately spaces are needed to make source source maps work (input and output file have a 1:1 correspondence on a character basis).

@kekkokk
Copy link
Author

kekkokk commented Sep 7, 2021

any ideas on how to resolve? maybe adding some eslint spicific comment at the end of the line to skip the indentation check?

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

No branches or pull requests

2 participants