From 4ae6ff61b443bc5e965e87282f55cf84c1692948 Mon Sep 17 00:00:00 2001 From: gilles Date: Sun, 13 Sep 2026 17:01:53 +0200 Subject: [PATCH] style(notes): apply formatting of interfaces and domain files --- src/components/NoteEditor.tsx | 5 +---- src/interfaces/delete-modal.ts | 2 +- src/interfaces/floating-button.ts | 2 +- src/interfaces/note-editor.ts | 2 +- src/interfaces/note-list.ts | 2 +- src/lib/noteValidation.test.ts | 2 +- src/lib/noteValidation.ts | 2 +- src/types/note.ts | 2 +- 8 files changed, 8 insertions(+), 11 deletions(-) diff --git a/src/components/NoteEditor.tsx b/src/components/NoteEditor.tsx index cf7bb7d..c98c500 100644 --- a/src/components/NoteEditor.tsx +++ b/src/components/NoteEditor.tsx @@ -1,8 +1,5 @@ import { useState } from 'react' -import type { - NoteEditorProps, - NoteFormProps, -} from '../interfaces/note-editor' +import type { NoteEditorProps, NoteFormProps } from '../interfaces/note-editor' import { isTitleValid, normalizeTitle } from '../lib/noteValidation' import DeleteModal from './DeleteModal' diff --git a/src/interfaces/delete-modal.ts b/src/interfaces/delete-modal.ts index 9b3bcf7..0a183db 100644 --- a/src/interfaces/delete-modal.ts +++ b/src/interfaces/delete-modal.ts @@ -3,4 +3,4 @@ export interface DeleteModalProps { title: string onConfirm: () => void onCancel: () => void -} \ No newline at end of file +} diff --git a/src/interfaces/floating-button.ts b/src/interfaces/floating-button.ts index 48a1c18..55d6866 100644 --- a/src/interfaces/floating-button.ts +++ b/src/interfaces/floating-button.ts @@ -1,4 +1,4 @@ export interface FloatingButtonProps { onClick: () => void label?: string -} \ No newline at end of file +} diff --git a/src/interfaces/note-editor.ts b/src/interfaces/note-editor.ts index 09a5ce0..56e64e0 100644 --- a/src/interfaces/note-editor.ts +++ b/src/interfaces/note-editor.ts @@ -26,4 +26,4 @@ export interface NoteFormProps { onContentChange: (value: string) => void onCancel: () => void onSubmit: () => void -} \ No newline at end of file +} diff --git a/src/interfaces/note-list.ts b/src/interfaces/note-list.ts index 234256f..3846e84 100644 --- a/src/interfaces/note-list.ts +++ b/src/interfaces/note-list.ts @@ -3,4 +3,4 @@ import type { Note } from '../types/note' export interface NoteListProps { notes: Note[] onSelect: (id: number) => void -} \ No newline at end of file +} diff --git a/src/lib/noteValidation.test.ts b/src/lib/noteValidation.test.ts index 49f0a38..24a8adc 100644 --- a/src/lib/noteValidation.test.ts +++ b/src/lib/noteValidation.test.ts @@ -23,4 +23,4 @@ describe('normalizeTitle', () => { it('keeps an already trimmed title unchanged', () => { expect(normalizeTitle('Courses')).toBe('Courses') }) -}) \ No newline at end of file +}) diff --git a/src/lib/noteValidation.ts b/src/lib/noteValidation.ts index ff77495..1d26ea2 100644 --- a/src/lib/noteValidation.ts +++ b/src/lib/noteValidation.ts @@ -4,4 +4,4 @@ export function isTitleValid(title: string): boolean { export function normalizeTitle(title: string): string { return title.trim() -} \ No newline at end of file +} diff --git a/src/types/note.ts b/src/types/note.ts index 1d75def..29fa7a0 100644 --- a/src/types/note.ts +++ b/src/types/note.ts @@ -4,4 +4,4 @@ export interface Note { content: string } -export type NotePatch = Partial> \ No newline at end of file +export type NotePatch = Partial>