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']],

View File

@@ -46,7 +46,7 @@ const openFeedbackUrl = () => {
const openSettings = () => router.push({ name: 'settings' })
</script>
<style scoped>
<style lang="postcss" scoped>
.account-button {
display: flex;
align-items: center;

View File

@@ -26,7 +26,7 @@ const id = computed(() => props.id ?? (currentRoute.value.params.uuid as I))
const isRecordNotFound = computed(() => props.isReady && !props.uuidChecker(id.value))
</script>
<style scoped>
<style lang="postcss" scoped>
.wrapper-spinner {
display: flex;
height: 100%;