Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR adds the
vue/max-len
rule.vue/max-len
rule enforces a maximum line length to increase code readability and maintainability.vue/max-len
rule is the similar rule as core max-len rule but it applies to the source code in.vue
.The following options are available for the
vue/max-len
rule.code
... enforces a maximum line length. default80
template
... enforces a maximum line length for<template>
. defaults to value ofcode
tabWidth
... specifies the character width for tab characters. default2
comments
... enforces a maximum line length for comments. defaults to value ofcode
ignorePattern
... ignores lines matching a regular expression. can only match a single line and need to be double escaped when written in YAML or JSONignoreComments
... iftrue
, ignores all trailing comments and comments on their own line. defaultfalse
ignoreTrailingComments
... iftrue
, ignores only trailing comments. defaultfalse
ignoreUrls
... iftrue
, ignores lines that contain a URL. defaultfalse
ignoreStrings
... iftrue
, ignores lines that contain a double-quoted or single-quoted string. defaultfalse
ignoreTemplateLiterals
... iftrue
, ignores lines that contain a template literal. defaultfalse
ignoreRegExpLiterals
... iftrue
, ignores lines that contain a RegExp literal. defaultfalse
ignoreHTMLAttributeValues
... iftrue
, ignores lines that contain a HTML attribute value. defaultfalse
ignoreHTMLTextContents
... iftrue
, ignores lines that contain a HTML text content. defaultfalse
close #731