Skip to content

Commit

Permalink
Add comments to ESLint Vue rules & require padding between tags (dire…
Browse files Browse the repository at this point in the history
…ctus#19051)

* Add comments to ESLint Vue rules & require padding between tags

* Fix comment
  • Loading branch information
paescuj committed Jun 30, 2023
1 parent 6658351 commit 66f9169
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
};

Expand Down

0 comments on commit 66f9169

Please sign in to comment.