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

New: Add vue/no-irregular-whitespace rule #964

Merged
merged 1 commit into from Dec 26, 2019

Conversation

ota-meshi
Copy link
Member

This PR adds the vue/no-irregular-whitespace rule.

vue/no-irregular-whitespace rule is aimed at catching invalid whitespace that is not a normal tab and space.
vue/no-irregular-whitespace rule is the similar rule as core no-irregular-whitespace rule but it applies to the source code in .vue.

The following options are available for the vue/no-irregular-whitespace rule.

  • skipStrings: if true, allows any whitespace characters in string literals. default true
  • skipComments: if true, allows any whitespace characters in comments. default false
  • skipRegExps: if true, allows any whitespace characters in regular expression literals. default false
  • skipTemplates: if true, allows any whitespace characters in template literals. default false
  • skipHTMLAttributeValues: if true, allows any whitespace characters in HTML attribute values. default false
  • skipHTMLTextContents: if true, allows any whitespace characters in HTML text contents. default false

close #926

@ota-meshi ota-meshi self-assigned this Sep 22, 2019
@ota-meshi ota-meshi force-pushed the add-rule/no-irregular-whitespace branch from a4ad23f to 933fc7c Compare December 26, 2019 06:05
@ota-meshi ota-meshi force-pushed the add-rule/no-irregular-whitespace branch from 933fc7c to 675c63e Compare December 26, 2019 06:10
@ota-meshi ota-meshi merged commit a3a73f1 into master Dec 26, 2019
@ota-meshi ota-meshi deleted the add-rule/no-irregular-whitespace branch December 26, 2019 07:40
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 this pull request may close these issues.

The "no-irregular-whitespace" rule prevents proper typography
1 participant