diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml
index b6c9131c0..9c79dbc57 100644
--- a/.github/workflows/style.yml
+++ b/.github/workflows/style.yml
@@ -89,7 +89,9 @@ jobs:
- name: Web style check
if: steps.changed-files.outputs.any_changed == 'true'
working-directory: ./web
- run: pnpm run lint
+ run: |
+ pnpm run lint
+ pnpm run eslint
docker-compose-template:
name: Docker Compose Template
diff --git a/web/__tests__/check-i18n.test.ts b/web/__tests__/check-i18n.test.ts
index b4c4f1540..b579f22d4 100644
--- a/web/__tests__/check-i18n.test.ts
+++ b/web/__tests__/check-i18n.test.ts
@@ -621,7 +621,7 @@ export default translation
&& !trimmed.startsWith('//'))
break
}
- else {
+ else {
break
}
diff --git a/web/__tests__/description-validation.test.tsx b/web/__tests__/description-validation.test.tsx
index 85263b035..a78a4e632 100644
--- a/web/__tests__/description-validation.test.tsx
+++ b/web/__tests__/description-validation.test.tsx
@@ -60,7 +60,7 @@ describe('Description Validation Logic', () => {
try {
validateDescriptionLength(invalidDescription)
}
- catch (error) {
+ catch (error) {
expect((error as Error).message).toBe(expectedErrorMessage)
}
})
@@ -86,7 +86,7 @@ describe('Description Validation Logic', () => {
expect(() => validateDescriptionLength(testDescription)).not.toThrow()
expect(validateDescriptionLength(testDescription)).toBe(testDescription)
}
- else {
+ else {
expect(() => validateDescriptionLength(testDescription)).toThrow(
'Description cannot exceed 400 characters.',
)
diff --git a/web/__tests__/document-list-sorting.test.tsx b/web/__tests__/document-list-sorting.test.tsx
index 1510dbec2..77c0bb60c 100644
--- a/web/__tests__/document-list-sorting.test.tsx
+++ b/web/__tests__/document-list-sorting.test.tsx
@@ -39,7 +39,7 @@ describe('Document List Sorting', () => {
const result = aValue.localeCompare(bValue)
return order === 'asc' ? result : -result
}
- else {
+ else {
const result = aValue - bValue
return order === 'asc' ? result : -result
}
diff --git a/web/__tests__/plugin-tool-workflow-error.test.tsx b/web/__tests__/plugin-tool-workflow-error.test.tsx
index 370052bc8..87bda8fa1 100644
--- a/web/__tests__/plugin-tool-workflow-error.test.tsx
+++ b/web/__tests__/plugin-tool-workflow-error.test.tsx
@@ -196,7 +196,7 @@ describe('Plugin Tool Workflow Integration', () => {
const _pluginId = (tool.uniqueIdentifier as any).split(':')[0]
}).toThrow()
}
- else {
+ else {
// Valid tools should work fine
expect(() => {
const _pluginId = tool.uniqueIdentifier.split(':')[0]
diff --git a/web/__tests__/real-browser-flicker.test.tsx b/web/__tests__/real-browser-flicker.test.tsx
index cf3abd5f8..52bdf4777 100644
--- a/web/__tests__/real-browser-flicker.test.tsx
+++ b/web/__tests__/real-browser-flicker.test.tsx
@@ -252,7 +252,7 @@ describe('Real Browser Environment Dark Mode Flicker Test', () => {
if (hasStyleChange)
console.log('⚠️ Style changes detected - this causes visible flicker')
- else
+ else
console.log('✅ No style changes detected')
expect(timingData.length).toBeGreaterThan(1)
diff --git a/web/__tests__/workflow-parallel-limit.test.tsx b/web/__tests__/workflow-parallel-limit.test.tsx
index 0843122ab..64e9d328f 100644
--- a/web/__tests__/workflow-parallel-limit.test.tsx
+++ b/web/__tests__/workflow-parallel-limit.test.tsx
@@ -15,7 +15,7 @@ const originalEnv = process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT
function setupEnvironment(value?: string) {
if (value)
process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT = value
- else
+ else
delete process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT
// Clear module cache to force re-evaluation
@@ -25,7 +25,7 @@ function setupEnvironment(value?: string) {
function restoreEnvironment() {
if (originalEnv)
process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT = originalEnv
- else
+ else
delete process.env.NEXT_PUBLIC_MAX_PARALLEL_LIMIT
jest.resetModules()
diff --git a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx
index a3281be8e..b1e915b2b 100644
--- a/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx
+++ b/web/app/(commonLayout)/app/(appDetailLayout)/[appId]/overview/tracing/__tests__/svg-attribute-error-reproduction.spec.tsx
@@ -47,7 +47,7 @@ describe('SVG Attribute Error Reproduction', () => {
console.log(` ${index + 1}. ${error.substring(0, 100)}...`)
})
}
- else {
+ else {
console.log('No inkscape errors found in this render')
}
@@ -150,7 +150,7 @@ describe('SVG Attribute Error Reproduction', () => {
if (problematicKeys.length > 0)
console.log(`🚨 PROBLEM: Still found problematic attributes: ${problematicKeys.join(', ')}`)
- else
+ else
console.log('✅ No problematic attributes found after normalization')
})
})
diff --git a/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx b/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx
index 0408d2ee3..5890c2ea9 100644
--- a/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx
+++ b/web/app/account/(commonLayout)/account-page/AvatarWithEdit.tsx
@@ -106,7 +106,7 @@ const AvatarWithEdit = ({ onSave, ...props }: AvatarWithEditProps) => {
onClick={() => {
if (hoverArea === 'right' && !onAvatarError)
setIsShowDeleteConfirm(true)
- else
+ else
setIsShowAvatarPicker(true)
}}
onMouseMove={(e) => {
diff --git a/web/app/components/app-sidebar/basic.tsx b/web/app/components/app-sidebar/basic.tsx
index 00357d6c2..77a965c03 100644
--- a/web/app/components/app-sidebar/basic.tsx
+++ b/web/app/components/app-sidebar/basic.tsx
@@ -45,8 +45,8 @@ const ICON_MAP = {
,
dataset: