feat(eslint): add boundaries/dependencies rule for frontend domain imports #429

Merged
marcel merged 8 commits from feat/issue-410-eslint-boundary-rule into main 2026-05-05 18:09:26 +02:00
3 changed files with 3 additions and 29 deletions
Showing only changes of commit 7a22c1faf2 - Show all commits

View File

@@ -1,7 +1,7 @@
<script lang="ts">
import {
formatDocumentStatus,
statusDotClass,
statusLabel,
type DocumentStatus
} from '$lib/document/documentStatusLabel';
@@ -12,7 +12,7 @@ type Props = {
let { status }: Props = $props();
const dotClass = $derived(statusDotClass(status));
const label = $derived(statusLabel(status));
const label = $derived(formatDocumentStatus(status));
</script>
<span

View File

@@ -1,5 +1,5 @@
import { describe, it, expect } from 'vitest';
import { formatDocumentStatus, statusDotClass, statusLabel } from './documentStatusLabel';
import { formatDocumentStatus, statusDotClass } from './documentStatusLabel';
describe('formatDocumentStatus', () => {
it('maps PLACEHOLDER to correct label', () => {
@@ -48,25 +48,3 @@ describe('statusDotClass', () => {
expect(statusDotClass('ARCHIVED')).toBe('bg-emerald-600');
});
});
describe('statusLabel', () => {
it('PLACEHOLDER → "Platzhalter"', () => {
expect(statusLabel('PLACEHOLDER')).toBe('Platzhalter');
});
it('UPLOADED → "Hochgeladen"', () => {
expect(statusLabel('UPLOADED')).toBe('Hochgeladen');
});
it('TRANSCRIBED → "Transkribiert"', () => {
expect(statusLabel('TRANSCRIBED')).toBe('Transkribiert');
});
it('REVIEWED → "Geprüft"', () => {
expect(statusLabel('REVIEWED')).toBe('Geprüft');
});
it('ARCHIVED → "Archiviert"', () => {
expect(statusLabel('ARCHIVED')).toBe('Archiviert');
});
});

View File

@@ -33,7 +33,3 @@ export function statusDotClass(status: DocumentStatus): string {
return 'bg-emerald-600';
}
}
export function statusLabel(status: string): string {
return formatDocumentStatus(status);
}