From 66f916916adbcba91543e556d14471f2a613ef8a Mon Sep 17 00:00:00 2001 From: Pascal Jufer Date: Fri, 30 Jun 2023 21:50:37 +0200 Subject: [PATCH] Add comments to ESLint Vue rules & require padding between tags (#19051) * Add comments to ESLint Vue rules & require padding between tags * Fix comment --- .eslintrc.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 1d626845bd8a8..563484b8371f9 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -56,14 +56,18 @@ const tsRules = { }; const vueRules = { - // Same component tags order everywhere + // Same ordering of component tags everywhere 'vue/component-tags-order': [ 'error', { order: ['template', 'script', 'style'], }, ], + // Require empty line between component tags + 'vue/padding-line-between-blocks': 'error', + // Allow single word component names ("Example" instead of "MyExample") 'vue/multi-word-component-names': 'off', + // Don't require default value for props that are not marked as required 'vue/require-default-prop': 'off', };