Skip to content

Commit

Permalink
fix(eslint-config): extend elements ignored by `vue/singleline-html-e…
Browse files Browse the repository at this point in the history
…lement-content-newline` (#526)
  • Loading branch information
DamianGlowala authored Dec 12, 2024
1 parent cf92de1 commit 281d019
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/eslint-config/src/flat/configs/vue.ts
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,12 @@ export default async function vue(options: NuxtESLintConfigOptions): Promise<Lin
ignores: ['pre', 'textarea', 'router-link', 'RouterLink', 'nuxt-link', 'NuxtLink', 'u-link', 'ULink', ...INLINE_ELEMENTS],
allowEmptyLines: false,
}],
'vue/singleline-html-element-content-newline': ['error', {
ignoreWhenNoAttributes: true,
ignoreWhenEmpty: true,
ignores: ['pre', 'textarea', 'router-link', 'RouterLink', 'nuxt-link', 'NuxtLink', 'u-link', 'ULink', ...INLINE_ELEMENTS],
externalIgnores: [],
}],
}
: {
// Disable Vue's default stylistic rules when stylistic is not enabled
Expand Down

0 comments on commit 281d019

Please sign in to comment.