From 999f6d1899651ea5e18a232f472d37f40b3f5685 Mon Sep 17 00:00:00 2001 From: Gator Date: Thu, 1 Dec 2022 12:02:42 +0100 Subject: [PATCH] more eslint rules (some not included in recommended) --- .eslintrc.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.eslintrc.js b/.eslintrc.js index da313c5..b7db048 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -6,11 +6,21 @@ module.exports = { extends: [ // add more generic rulesets here, such as: "eslint:recommended", + "plugin:vue/vue3-essential", + "plugin:vue/vue3-strongly-recommended", "plugin:vue/vue3-recommended", "prettier", ], rules: { // override/add rules settings here, such as: // 'vue/no-unused-vars': 'error' + 'vue/match-component-import-name': 'warn', + 'vue/no-ref-object-destructure': 'warn', + 'vue/no-required-prop-with-default': 'warn', + 'vue/no-restricted-class': 'warn', + 'vue/no-template-target-blank' : 'warn', + 'vue/no-this-in-before-route-enter' : 'warn', + 'vue/prefer-prop-type-boolean-first' : 'warn', + }, };