-
Notifications
You must be signed in to change notification settings - Fork 21
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
Support max-len in Vue components #1272
Changes from 6 commits
692b73f
f6cce97
996a7e6
859799b
9b26f94
97ad5cf
4e0d6b1
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,20 +12,7 @@ module.exports = { | |
}, | ||
overrides: [ | ||
{ | ||
files: 'src/**/*.vue', | ||
rules: { | ||
'max-len': [ | ||
'error', | ||
{ | ||
code: 100, | ||
ignoreComments: false, | ||
ignorePattern: '|class=".*"$ |https://github' | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
files: 'src/components/icons/*.vue', | ||
Comment on lines
-27
to
-28
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. No need to specify disabling |
||
files: ['*.vue'], | ||
rules: { | ||
'max-len': 'off' | ||
} | ||
Comment on lines
16
to
18
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is the only way I found to effectively disable |
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we are disabling the entire
max-len
rule for vue components, in order to usevue/max-len
one, we get rid of this config here.