frontend: add OXC lint/format setup and apply semicolon fixes

This commit is contained in:
2026-05-25 02:54:30 +00:00
parent 836a563897
commit f6a40babc9
26 changed files with 3452 additions and 3130 deletions
+13 -12
View File
@@ -14,26 +14,27 @@
:key="`raw-${code}`"
class="language-code-fallback"
:title="code"
>{{ code }}</span>
>{{ code }}</span
>
</span>
</div>
</template>
<script setup lang="ts">
import { computed } from 'vue';
import { buildLanguageFlags } from '../utils/languageFlags';
import { computed } from "vue"
import { buildLanguageFlags } from "../utils/languageFlags"
const props = defineProps<{
label?: string;
codes: string[] | null | undefined;
compact?: boolean;
}>();
label?: string
codes: string[] | null | undefined
compact?: boolean
}>()
const mapped = computed(() => buildLanguageFlags(props.codes));
const flagEntries = computed(() => mapped.value.flags);
const unmappedCodes = computed(() => mapped.value.unmappedCodes);
const hasContent = computed(() => flagEntries.value.length > 0 || unmappedCodes.value.length > 0);
const compact = computed(() => props.compact === true);
const mapped = computed(() => buildLanguageFlags(props.codes))
const flagEntries = computed(() => mapped.value.flags)
const unmappedCodes = computed(() => mapped.value.unmappedCodes)
const hasContent = computed(() => flagEntries.value.length > 0 || unmappedCodes.value.length > 0)
const compact = computed(() => props.compact === true)
</script>
<style scoped>