Skip to content

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

Merged
merged 2 commits into from
Jun 2, 2017

Conversation

michalsnik
Copy link
Member

This PR simplifies further configuration by adding vue-libs plugin in recommended config.

@@ -9,7 +11,6 @@ ESLint plugin for libs in the vuejs organization. Note this is an internal plugi

```js
{
 plugins: ["vue-libs"],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this should be kept

Copy link
Member Author

@michalsnik michalsnik Jun 1, 2017

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'],
Copy link
Member

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 😛

Copy link
Member Author

@michalsnik michalsnik Jun 1, 2017

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

Copy link
Member

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.
Copy link
Member

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:)

@yyx990803 yyx990803 merged commit 51a4f77 into vuejs:master Jun 2, 2017
@michalsnik michalsnik deleted the add-plugin-in-config branch June 2, 2017 06:15
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.

5 participants
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy