Skip to content

Commit

Permalink
Update example config to use essential rules (#234)
Browse files Browse the repository at this point in the history
I think the `essential` rules make the most sense as a default implied recommendation, as they're the most universally useful, without anything too opinionated.

I also updated the comments slightly and commented out the base config and example rule, so that users blindly copying and pasting don't add anything unnecessary. Without it commented out, some users may also assume that `eslint:recommended` is required for the plugin to work.
  • Loading branch information
chrisvfritz authored and michalsnik committed Nov 19, 2017
1 parent 0f18b3b commit 09b8f90
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,13 @@ Example **.eslintrc.js**:
```js
module.exports = {
extends: [
'eslint:recommended',
'plugin:vue/recommended' // or 'plugin:vue/base'
// add more generic rulesets here, such as:
// 'eslint:recommended',
'plugin:vue/essential'
],
rules: {
// override/add rules' settings here
'vue/valid-v-if': 'error'
// override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
}
}
```
Expand Down

0 comments on commit 09b8f90

Please sign in to comment.