-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
Add eslint configuration tab #2008
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
Conversation
78048db
to
80d2c59
Compare
@@ -12,7 +12,7 @@ | |||
</div> | |||
<div v-if="description || link || showDescription" class="description"> | |||
<slot name="description"> | |||
<span v-html="description"/> |
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.
Why this change?
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.
Description of some rules contain <tagname>
and it broked the UI 🤔
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.
Could we strip them out?
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.
escaped
Seems like because of network issues the build failed. Can you please @Akryum rerun the build from CircleCI? |
Closes #1423
This PR updates the configuration tab for
@vue/cli-plugin-eslint
in vue-ui.Original proposition: vuejs/eslint-plugin-vue#477
It adds a

general
tab with two settings, where users can both setlint on save
and choose one of the pre-defined configs:It add a

rules
tab with a list of all rules and categories:When user selects certain category in
general
tab - lets' saystrongly-recommended
we seterror
asdefault
value for all rules inbase
,essential
andstrongly-recommended
categories.At the very bottom we also have a list of
Uncategorized
rules, that are always off by default.Due to the fact that it's really hard, and currently impossible to generate controls that would allow full configuration regarding actual rules' schemas we allow setting only
error
,warning
andoff
. If the user wants he can customize rules further using.eslintrc
, then if the rule has custom settings, we display its value in dropdown ascustom
- but this option appears only if the rule has been reconfigured.Whenever user changes the configuration in
general
tab, to not introduce confusion we're not resetting any custom settings, that user might've set himself before.cc @chrisvfritz