chore(web stack): add ESLint rule to check style and script tags "lang" attribute (#7898)

This commit is contained in:
OlivierFL
2024-08-09 14:44:56 +02:00
committed by GitHub
parent 14da422b8b
commit b6ccb72e43
3 changed files with 3 additions and 2 deletions

View File

@@ -138,6 +138,7 @@ module.exports = {
'vue/no-v-html': 'error',
'vue/this-in-template': 'error',
// Vue 3 - Uncategorized
'vue/block-lang': ['error', { script: { lang: 'ts' }, style: { lang: 'postcss' } }],
'vue/block-order': ['error', { order: ['template', 'script', 'style'] }],
'vue/block-tag-newline': ['error', { singleline: 'consistent', multiline: 'always', maxEmptyLines: 0 }],
'vue/component-api-style': ['error', ['script-setup']],