From 85716c7d89ad48829dd59eb72f63a1c5831401f9 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Mon, 12 Nov 2018 18:18:24 -0500 Subject: [PATCH] Upgrade the eslint linting to the recommended settings, with some values tweaked --- eslintrc | 23 +++++++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/eslintrc b/eslintrc index 5173f00..912566d 100644 --- a/eslintrc +++ b/eslintrc @@ -6,7 +6,7 @@ }, "extends": [ - "plugin:vue/essential" + "plugin:vue/recommended" ], "rules": { @@ -122,7 +122,26 @@ "vue/no-unused-components": [ "warn" ], "vue/no-unused-vars": [ "warn" ], "vue/no-use-v-if-with-v-for": [ "warn" ], - "vue/require-v-for-key": "off" + "vue/require-v-for-key": "off", + "vue/attribute-hyphenation": [ "warn" ], + "vue/html-closing-bracket-newline": "off", + "vue/html-closing-bracket-spacing": [ "warn", { "startTag": "never", "endTag": "never", "selfClosingTag": "always" } ], + "vue/html-indent": "off", + "vue/html-self-closing": "off", + "vue/max-attributes-per-line": [ "warn", { "singleline": 3, "multiline": { "max": 1, "allowFirstLine": false } } ], + "vue/mustache-interpolation-spacing": [ "warn" ], + "vue/name-property-casing": [ "warn" ], + "vue/no-multi-spaces": [ "warn" ], + "vue/prop-name-casing": [ "warn" ], + "vue/require-default-prop": "off", + "vue/require-prop-types": [ "warn" ], + "vue/v-bind-style": [ "warn" ], + "vue/v-on-style": [ "warn" ], + "vue/attributes-order": [ "warn" ], + "vue/html-quotes": [ "warn" ], + "vue/no-v-html": "off", + "vue/order-in-components": [ "warn", { "order": [ "el", "name", "parent", "functional", [ "delimiters", "comments" ], [ "mixins", "extends" ], [ "components", "directives", "filters" ], "inheritAttrs", "model", [ "props", "propsData" ], "data", "computed", "methods", "beforeCreate", "created", "beforeMount", "mounted", "beforeUpdate", "updated", "activated", "deactivated", "watch", "beforeDestroy", "destroyed", [ "template", "render" ], "renderError" ] } ], + "vue/this-in-template": [ "warn" ] } } ]