Skip to content

Commit 5097ca1

Browse files
committed
chore(lint): enforce strict linting rules and fix violations
1 parent 4de2b41 commit 5097ca1

File tree

3 files changed

+9
-17
lines changed

3 files changed

+9
-17
lines changed

web/frontend/eslint.config.js

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,13 @@ export default tseslint.config(
2727
},
2828
rules: {
2929
...reactHooks.configs.recommended.rules,
30-
...react.configs.recommended.rules,
31-
...react.configs['jsx-runtime'].rules,
3230

3331
'react-refresh/only-export-components': [
3432
'warn',
3533
{ allowConstantExport: true },
3634
],
3735

38-
// Relaxed Rules
39-
'@typescript-eslint/no-explicit-any': 'warn',
40-
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
41-
'react/prop-types': 'off',
4236
'no-console': ['warn', { allow: ['warn', 'error', 'info'] }],
43-
'prefer-const': 'warn',
44-
'react/no-unescaped-entities': 'off',
4537
},
4638
},
4739
)

web/frontend/src/features/transcription/components/AudioFilesTable.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ export const AudioFilesTable = memo(function AudioFilesTable({
358358
}, [selectedJobId, refetch, onTranscribe, data, getAuthHeaders]);
359359

360360
// Handle actual transcription start with profile parameters
361-
const handleStartTranscriptionWithProfile = useCallback(async (params: WhisperXParams, _profileId?: string) => {
361+
const handleStartTranscriptionWithProfile = useCallback(async (params: WhisperXParams) => {
362362
if (!selectedJobId) return;
363363

364364
// Validate multi-track compatibility

web/frontend/src/features/transcription/components/audio-detail/SummaryDialog.tsx

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -203,14 +203,14 @@ export function SummaryDialog({ audioId, isOpen, onClose, llmReady }: SummaryDia
203203
remarkPlugins={[remarkMath]}
204204
rehypePlugins={[rehypeRaw as any, rehypeKatex as any, rehypeHighlight as any]} // eslint-disable-line @typescript-eslint/no-explicit-any
205205
components={{
206-
p: ({ node: _node, ...props }) => <p className="text-[#525252] dark:text-[#A3A3A3] leading-7 mb-4" {...props} />,
207-
h1: ({ node: _node, ...props }) => <h1 className="text-[#171717] dark:text-[#EDEDED] font-bold text-2xl mt-6 mb-4" {...props} />,
208-
h2: ({ node: _node, ...props }) => <h2 className="text-[#171717] dark:text-[#EDEDED] font-bold text-xl mt-6 mb-3" {...props} />,
209-
h3: ({ node: _node, ...props }) => <h3 className="text-[#171717] dark:text-[#EDEDED] font-bold text-lg mt-5 mb-2" {...props} />,
210-
li: ({ node: _node, ...props }) => <li className="text-[#525252] dark:text-[#A3A3A3] mb-1" {...props} />,
211-
strong: ({ node: _node, ...props }) => <strong className="text-[#171717] dark:text-[#EDEDED] font-bold" {...props} />,
212-
ul: ({ node: _node, ...props }) => <ul className="list-disc pl-5 mb-4" {...props} />,
213-
ol: ({ node: _node, ...props }) => <ol className="list-decimal pl-5 mb-4" {...props} />,
206+
p: ({ ...props }) => <p className="text-[#525252] dark:text-[#A3A3A3] leading-7 mb-4" {...props} />,
207+
h1: ({ ...props }) => <h1 className="text-[#171717] dark:text-[#EDEDED] font-bold text-2xl mt-6 mb-4" {...props} />,
208+
h2: ({ ...props }) => <h2 className="text-[#171717] dark:text-[#EDEDED] font-bold text-xl mt-6 mb-3" {...props} />,
209+
h3: ({ ...props }) => <h3 className="text-[#171717] dark:text-[#EDEDED] font-bold text-lg mt-5 mb-2" {...props} />,
210+
li: ({ ...props }) => <li className="pl-1 text-[#525252] dark:text-[#A3A3A3] mb-1" {...props} />,
211+
strong: ({ ...props }) => <strong className="text-[#171717] dark:text-[#EDEDED] font-bold" {...props} />,
212+
ul: ({ ...props }) => <ul className="list-disc pl-5 mb-4" {...props} />,
213+
ol: ({ ...props }) => <ol className="list-decimal pl-5 mb-4" {...props} />,
214214
}}
215215
>
216216
{streamContent || existingSummary?.content || ""}

0 commit comments

Comments
 (0)