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
2
.babelrc
2
.babelrc
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"presets": ["es2015"],
|
||||
"presets": ["es2015", "stage-3"],
|
||||
"plugins": ["transform-runtime"],
|
||||
"comments": false
|
||||
}
|
||||
|
|
|
@ -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"]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -56,12 +56,13 @@
|
|||
"babel-loader": "^6.4.1",
|
||||
"babel-plugin-transform-runtime": "^6.12.0",
|
||||
"babel-preset-es2015": "^6.24.1",
|
||||
"babel-preset-stage-3": "^6.24.1",
|
||||
"babel-runtime": "^6.11.6",
|
||||
"chai": "^3.5.0",
|
||||
"cross-env": "^3.2.4",
|
||||
"css-loader": "^0.23.1",
|
||||
"eslint": "^3.19.0",
|
||||
"eslint-plugin-html": "^1.7.0",
|
||||
"eslint-plugin-vue": "^2.1.0",
|
||||
"extract-text-webpack-plugin": "^2.1.2",
|
||||
"file-loader": "^0.8.5",
|
||||
"friendly-errors-webpack-plugin": "^1.6.1",
|
||||
|
|
Loading…
Add table
Reference in a new issue