From 9b930fcc2c8040cd9eb98e0b7b6f6fb9c9fa86c9 Mon Sep 17 00:00:00 2001 From: Cretu Eusebiu Date: Wed, 14 Mar 2018 17:24:18 +0200 Subject: [PATCH] Enable vue eslint --- .eslintrc | 15 ++++++-- resources/assets/js/app.js | 1 + resources/assets/js/components/App.vue | 2 +- resources/assets/js/components/Button.vue | 15 +++++--- resources/assets/js/components/Card.vue | 4 ++- resources/assets/js/components/Checkbox.vue | 35 +++++++++---------- resources/assets/js/components/Loading.vue | 4 +-- .../assets/js/components/LocaleDropdown.vue | 6 ++-- .../assets/js/components/LoginWithGithub.vue | 2 +- resources/assets/js/components/Navbar.vue | 23 ++++++------ resources/assets/js/layouts/basic.vue | 1 - resources/assets/js/pages/auth/login.vue | 8 ++--- .../assets/js/pages/auth/password/email.vue | 3 +- .../assets/js/pages/auth/password/reset.vue | 9 ++--- resources/assets/js/pages/auth/register.vue | 14 +++----- resources/assets/js/pages/settings/index.vue | 2 +- .../assets/js/pages/settings/password.vue | 8 ++--- .../assets/js/pages/settings/profile.vue | 8 ++--- resources/assets/js/pages/welcome.vue | 8 ++--- resources/assets/js/plugins/fontawesome.js | 4 +-- resources/assets/js/router/index.js | 6 ++-- resources/assets/js/router/routes.js | 12 ++++--- 22 files changed, 96 insertions(+), 94 deletions(-) diff --git a/.eslintrc b/.eslintrc index 24f2a4aa1..b906376a9 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,6 +1,15 @@ { - "parser": "babel-eslint", + "root": true, + "parserOptions": { + "parser": "babel-eslint", + "ecmaVersion": 2017, + "sourceType": "module" + }, "extends": [ - "plugin:vue-libs/recommended" - ] + "plugin:vue/recommended", + "@vue/standard" + ], + "rules": { + "vue/max-attributes-per-line": "off" + } } diff --git a/resources/assets/js/app.js b/resources/assets/js/app.js index 869a6b309..525edb8e8 100644 --- a/resources/assets/js/app.js +++ b/resources/assets/js/app.js @@ -9,6 +9,7 @@ import '~/components' Vue.config.productionTip = false +/* eslint-disable no-new */ new Vue({ i18n, store, diff --git a/resources/assets/js/components/App.vue b/resources/assets/js/components/App.vue index 39b3ad715..4d6ab1186 100644 --- a/resources/assets/js/components/App.vue +++ b/resources/assets/js/components/App.vue @@ -3,7 +3,7 @@ - + diff --git a/resources/assets/js/components/Button.vue b/resources/assets/js/components/Button.vue index a50152742..9c206bb52 100644 --- a/resources/assets/js/components/Button.vue +++ b/resources/assets/js/components/Button.vue @@ -1,10 +1,10 @@ @@ -29,8 +29,15 @@ export default { default: false }, - block: Boolean, - large: Boolean + block: { + type: Boolean, + default: false + }, + + large: { + type: Boolean, + default: false + } } } diff --git a/resources/assets/js/components/Card.vue b/resources/assets/js/components/Card.vue index 67bd91ca4..bbf9ab742 100644 --- a/resources/assets/js/components/Card.vue +++ b/resources/assets/js/components/Card.vue @@ -14,6 +14,8 @@ export default { name: 'Card', - props: ['title'] + props: { + title: { type: String, default: null } + } } diff --git a/resources/assets/js/components/Checkbox.vue b/resources/assets/js/components/Checkbox.vue index 6f42d059e..49b8a34de 100644 --- a/resources/assets/js/components/Checkbox.vue +++ b/resources/assets/js/components/Checkbox.vue @@ -1,14 +1,13 @@