Add Object rest spread to eslint and babel configs
Also change from `eslint-plugin-html` to `eslint-plugin-vue`
This commit is contained in:
parent
2baba209b7
commit
0df878a860
3 changed files with 8 additions and 3 deletions
|
@ -1,6 +1,9 @@
|
|||
{
|
||||
"root": true,
|
||||
"parserOptions": {
|
||||
"ecmaFeatures": {
|
||||
"experimentalObjectRestSpread": true
|
||||
},
|
||||
"ecmaVersion": 6,
|
||||
"sourceType": "module"
|
||||
},
|
||||
|
@ -8,11 +11,12 @@
|
|||
"browser": true
|
||||
},
|
||||
"extends": "eslint:recommended",
|
||||
"plugins": [ "html" ],
|
||||
"plugins": ["vue"],
|
||||
"rules": {
|
||||
"indent": ["error", 4, { "SwitchCase": 1 }],
|
||||
"quotes": ["error", "single"],
|
||||
"semi": ["error", "always"],
|
||||
"vue/jsx-uses-vars": 2,
|
||||
"no-console": ["error"]
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue