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

The "no-irregular-whitespace" rule prevents proper typography #926

Closed
iamvdo opened this issue Jul 10, 2019 · 2 comments · Fixed by #964
Closed

The "no-irregular-whitespace" rule prevents proper typography #926

iamvdo opened this issue Jul 10, 2019 · 2 comments · Fixed by #964

Comments

@iamvdo
Copy link

iamvdo commented Jul 10, 2019

In French, double punctuation marks (;, :, ! and ?) take a non-breakable space before them. Writing in French inside <template> returns the no-irregular-whitespace error.

Test for yourself:

<template>
  <div>
    Bonjour !
  </div>
</template>

Is it a usecase eslint-plugin-vue can handle? Allowing whitespaces inside <template>?

Or, how am I supposed to deal with that?

Thanks!

@Samuelfaure
Copy link

I would love more informations on this. For now I am forced to ignore completely the no-irregular-whitespace rule.

@ota-meshi
Copy link
Member

Thank you for this issue.

I think we need to add a new rule vue/no-irregular-whitespace dedicated to vue files to this plugin.
The vue/no-irregular-whitespace rule requires additional options to ignore inline values ​​of attributes, and ignore HTML text content.

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.

3 participants