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-config does not allow non-breaking spaces #9

Open
georgehrke opened this issue Nov 14, 2019 · 3 comments
Open

eslint-config does not allow non-breaking spaces #9

georgehrke opened this issue Nov 14, 2019 · 3 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@georgehrke
Copy link

In the calendar, I tried to replace spaces before an ellipsis with non-breaking spaces

It caused the following error message, which should not happen:
error Irregular whitespace not allowed no-irregular-whitespace

(nextcloud/calendar#1658)

Can we have a special rule that ellipsis must be preceded by non-breaking spaces?

@skjnldsv
Copy link
Contributor

I guess we should yes :)
Thanks for noticing!

@skjnldsv
Copy link
Contributor

skjnldsv commented Jul 2, 2021

@skjnldsv skjnldsv added good first issue Good for newcomers enhancement New feature or request labels Jan 17, 2022
@susnux
Copy link
Contributor

susnux commented Jul 11, 2023

no-irregular-whitespace skips strings, templates and comments by default.
I also can only reproduce this when using non breaking space within the code, which is expected to be an error.

Can we have a special rule that ellipsis must be preceded by non-breaking spaces?

I think this needs to be a plugin, maybe within @nextcloud/eslint-plugin ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants