H-417: include frontend TypeScript in format checks (#78)

Co-authored-by: Rogee <rogee@ipao.vip>
This commit is contained in:
Rogee
2026-08-21 14:37:23 +08:00
committed by GitHub
co-authored by rogee
parent a0f668b2d8
commit e665abbfb8
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ indent_style = tab
indent_style = space
indent_size = 2
[frontend/**/*.{cjs,js,vue}]
[frontend/**/*.{cjs,js,ts,vue}]
indent_style = space
indent_size = 2
+2 -2
View File
@@ -73,6 +73,6 @@ jobs:
- run: pnpm install --frozen-lockfile
- name: ESLint representative JS/Vue files
run: pnpm --dir frontend exec eslint app/javascript/dashboard/components-next/captain/assistant/AssistantPlayground.spec.js app/javascript/dashboard/components-next/captain/assistant/AssistantPlayground.vue
- name: Prettier representative JS/Vue files
run: pnpm --dir frontend exec prettier --check app/javascript/dashboard/components-next/captain/assistant/AssistantPlayground.spec.js app/javascript/dashboard/components-next/captain/assistant/AssistantPlayground.vue
- name: Prettier representative JS/TS/Vue files
run: pnpm --dir frontend exec prettier --check app/javascript/dashboard/components-next/captain/assistant/AssistantPlayground.spec.js app/javascript/dashboard/components-next/captain/assistant/AssistantPlayground.vue vite.config.ts app/javascript/histoire.setup.ts
- run: pnpm --dir frontend build
+8 -2
View File
@@ -55,8 +55,14 @@ const entrypoints = {
dashboard: path.resolve(__dirname, './index.html'),
widget: path.resolve(__dirname, './app/javascript/entrypoints/widget.js'),
portal: path.resolve(__dirname, './app/javascript/entrypoints/portal.js'),
superadmin: path.resolve(__dirname, './app/javascript/entrypoints/superadmin.js'),
superadmin_pages: path.resolve(__dirname, './app/javascript/entrypoints/superadmin_pages.js'),
superadmin: path.resolve(
__dirname,
'./app/javascript/entrypoints/superadmin.js'
),
superadmin_pages: path.resolve(
__dirname,
'./app/javascript/entrypoints/superadmin_pages.js'
),
survey: path.resolve(__dirname, './app/javascript/entrypoints/survey.js'),
v3app: path.resolve(__dirname, './app/javascript/entrypoints/v3app.js'),
};