Skip to content

Commit

Permalink
fix: vue/multi-word-component-names should be universal
Browse files Browse the repository at this point in the history
The vue/multi-word-component-names rule is applied to both Vue 2 and
Vue 3 versions of the eslint-plugin-vue package for essential,
recommended, and strongly recommended rule sets. So, when we disable
this rule, it should be for both Vue 2 and Vue 3.

Ref: https://eslint.vuejs.org/rules/multi-word-component-names.html
  • Loading branch information
joshuacurtiss committed Apr 28, 2023
1 parent e57eddb commit 615ae24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion partials/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ const silvermineRulesUniversal = {
'vue/html-quotes': [ 'error', 'double' ],
'vue/html-self-closing': 'error',
'vue/max-attributes-per-line': 'off',
'vue/multi-word-component-names': 'off',
'vue/multiline-html-element-content-newline': 'error',
'vue/mustache-interpolation-spacing': 'error',
'vue/no-multi-spaces': 'error',
Expand Down Expand Up @@ -174,7 +175,6 @@ const silvermineRulesVue2Only = {};

const silvermineRulesVue3Only = {
'vue/no-deprecated-v-is': 'error',
'vue/multi-word-component-names': 'off',
'vue/v-on-event-hyphenation': [ 'error', 'never' ],
};

Expand Down

0 comments on commit 615ae24

Please sign in to comment.