mirror of
https://github.com/vatesfr/xen-orchestra.git
synced 2026-09-10 22:14:48 -05:00
chore(web stack): add ESLint rule to check style and script tags "lang" attribute (#7898)
This commit is contained in:
@@ -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']],
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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%;
|
||||
|
||||
Reference in New Issue
Block a user