Commit 0df878a860c510393e2ce4f1e5dd6e16006d05b9
1 parent
2baba209
Add Object rest spread to eslint and babel configs
Also change from `eslint-plugin-html` to `eslint-plugin-vue`
Showing
3 changed files
with
8 additions
and
3 deletions
Show diff stats
.babelrc
.eslintrc.json
1 | 1 | { |
2 | 2 | "root": true, |
3 | 3 | "parserOptions": { |
4 | + "ecmaFeatures": { | |
5 | + "experimentalObjectRestSpread": true | |
6 | + }, | |
4 | 7 | "ecmaVersion": 6, |
5 | 8 | "sourceType": "module" |
6 | 9 | }, |
... | ... | @@ -8,11 +11,12 @@ |
8 | 11 | "browser": true |
9 | 12 | }, |
10 | 13 | "extends": "eslint:recommended", |
11 | - "plugins": [ "html" ], | |
14 | + "plugins": ["vue"], | |
12 | 15 | "rules": { |
13 | 16 | "indent": ["error", 4, { "SwitchCase": 1 }], |
14 | 17 | "quotes": ["error", "single"], |
15 | 18 | "semi": ["error", "always"], |
19 | + "vue/jsx-uses-vars": 2, | |
16 | 20 | "no-console": ["error"] |
17 | 21 | } |
18 | 22 | } | ... | ... |
package.json
... | ... | @@ -56,12 +56,13 @@ |
56 | 56 | "babel-loader": "^6.4.1", |
57 | 57 | "babel-plugin-transform-runtime": "^6.12.0", |
58 | 58 | "babel-preset-es2015": "^6.24.1", |
59 | + "babel-preset-stage-3": "^6.24.1", | |
59 | 60 | "babel-runtime": "^6.11.6", |
60 | 61 | "chai": "^3.5.0", |
61 | 62 | "cross-env": "^3.2.4", |
62 | 63 | "css-loader": "^0.23.1", |
63 | 64 | "eslint": "^3.19.0", |
64 | - "eslint-plugin-html": "^1.7.0", | |
65 | + "eslint-plugin-vue": "^2.1.0", | |
65 | 66 | "extract-text-webpack-plugin": "^2.1.2", |
66 | 67 | "file-loader": "^0.8.5", |
67 | 68 | "friendly-errors-webpack-plugin": "^1.6.1", | ... | ... |