Skip to content

Commit

Permalink
fix: disable vue/require-default-prop
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed May 16, 2023
1 parent 9a3cca9 commit 9b5b76f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,12 @@ export const reactivityTransform = [
]

/** @type {import('eslint-define-config').Rules} */
const vueBaseRules = {
const vueCustomRules = {
'vue/max-attributes-per-line': 'off',
'vue/no-v-html': 'off',
'vue/multi-word-component-names': 'off',
'vue/require-prop-types': 'off',
'vue/require-default-prop': 'off',

'vue/html-self-closing': [
'error',
Expand Down Expand Up @@ -92,7 +93,6 @@ const vue3Rules = {
...vuePlugin.configs['vue3-essential'].rules,
...vuePlugin.configs['vue3-strongly-recommended'].rules,
...vuePlugin.configs['vue3-recommended'].rules,
...vueBaseRules,
}

/** @type {import('eslint-define-config').Rules} */
Expand All @@ -101,7 +101,6 @@ const vue2Rules = {
...vuePlugin.configs['essential'].rules,
...vuePlugin.configs['strongly-recommended'].rules,
...vuePlugin.configs['recommended'].rules,
...vueBaseRules,
}

/** @type {import('eslint-define-config').FlatESLintConfigItem[]} */
Expand Down Expand Up @@ -134,6 +133,7 @@ export const vue = [
},
rules: {
...(isVue3 ? vue3Rules : vue2Rules),
...vueCustomRules,
},
},
...reactivityTransform,
Expand Down

0 comments on commit 9b5b76f

Please sign in to comment.