diff --git a/.eslintrc.js b/.eslintrc.js
index 54790a4..0e5c28a 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -1,7 +1,7 @@
module.exports = {
root: true,
- parser: 'babel-eslint',
parserOptions: {
+ parser: 'babel-eslint',
sourceType: 'module'
},
env: {
@@ -9,22 +9,19 @@ module.exports = {
node: true,
es6: true,
},
- extends: 'eslint:recommended',
- // required to lint *.vue files
- plugins: [
- 'html'
- ],
- // check if imports actually resolve
- 'settings': {
- 'import/resolver': {
- 'webpack': {
- 'config': 'build/webpack.base.conf.js'
- }
- }
- },
+ extends: ['plugin:vue/recommended', 'eslint:recommended'],
+
// add your custom rules here
//it is base on https://github.com/vuejs/eslint-config-vue
rules: {
+ "vue/max-attributes-per-line": [2, {
+ "singleline": 10,
+ "multiline": {
+ "max": 1,
+ "allowFirstLine": false
+ }
+ }],
+ "vue/name-property-casing": ["error", "PascalCase"],
'accessor-pairs': 2,
'arrow-spacing': [2, {
'before': true,
@@ -196,3 +193,4 @@ module.exports = {
'array-bracket-spacing': [2, 'never']
}
}
+
diff --git a/package.json b/package.json
index b800b4e..1e68074 100644
--- a/package.json
+++ b/package.json
@@ -39,7 +39,7 @@
"eslint": "4.19.1",
"eslint-friendly-formatter": "4.0.1",
"eslint-loader": "2.0.0",
- "eslint-plugin-html": "4.0.5",
+ "eslint-plugin-vue": "4.7.1",
"eventsource-polyfill": "0.9.6",
"file-loader": "1.1.11",
"friendly-errors-webpack-plugin": "1.7.0",
diff --git a/src/App.vue b/src/App.vue
index 812eef2..721d3a3 100644
--- a/src/App.vue
+++ b/src/App.vue
@@ -1,6 +1,6 @@
-
+
diff --git a/src/components/Breadcrumb/index.vue b/src/components/Breadcrumb/index.vue
index b5d9471..11ce3a5 100644
--- a/src/components/Breadcrumb/index.vue
+++ b/src/components/Breadcrumb/index.vue
@@ -1,9 +1,9 @@
-
- {{item.meta.title}}
- {{item.meta.title}}
+
+ {{ item.meta.title }}
+ {{ item.meta.title }}
@@ -11,9 +11,6 @@