-
Notifications
You must be signed in to change notification settings - Fork 27
Add plugin in config, update README #1
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
@@ -9,7 +11,6 @@ ESLint plugin for libs in the vuejs organization. Note this is an internal plugi | |||
|
|||
```js | |||
{ | |||
plugins: ["vue-libs"], |
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.
this should be kept
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.
I'd say we should rather present two examples, like so:
{
plugins: ['vue-libs'],
rules: {
// set all rules that you're interested in
}
}
and
{
extends: ['plugin:vue-libs/recommended'],
rules: {
// override rules' settings if necessary
}
}
@@ -1,5 +1,5 @@ | |||
module.exports = { | |||
plugins: ['html'], | |||
plugins: ['html', 'vue-libs'], |
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.
we don't want to depend on ourselves 😛
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.
These are recommended settings so I think it's perfectly fine to keep it there. Especially because you already set 'vue-libs/jsx-uses-vars': 2
in this config.
Btw. it's also what other plugins do in theirs recommended configurations e.g.: https://github.com/yannickcr/eslint-plugin-react/blob/master/index.js
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.
Oh my bad! I didn't see it was the recommended
sorry!
README.md
Outdated
ESLint plugin for libs in the vuejs organization. Note this is an internal plugin/config for the development of Vue itself, not intended for Vue app development. | ||
> ESLint plugin for libs in the vuejs organization. | ||
|
||
❗️ Note this is an internal plugin/config for the development of Vue itself, not intended for Vue app development. |
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.
I think github emoji code is human editable rather than emoji binary code. (e.g: :exclamation:
)
This PR simplifies further configuration by adding
vue-libs
plugin in recommended config.