Skip to content

Frontend Linter 546/merge by @aadereiko #88

Frontend Linter 546/merge by @aadereiko

Frontend Linter 546/merge by @aadereiko #88

Triggered via pull request November 4, 2024 10:50
Status Failure
Total duration 39s
Artifacts

frontend_linter.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 3 warnings
lint: apps/opik-frontend/src/api/api.ts#L20
Delete `⏎`
lint: apps/opik-frontend/src/api/prompts/usePromptCreateMutation.ts#L5
Replace `PROMPTS_REST_ENDPOINT` with `·PROMPTS_REST_ENDPOINT·`
lint: apps/opik-frontend/src/api/prompts/usePromptCreateMutation.ts#L7
Replace `Prompt` with `·Prompt·`
lint: apps/opik-frontend/src/api/prompts/usePromptDeleteMutation.ts#L4
Replace `PROMPTS_REST_ENDPOINT` with `·PROMPTS_REST_ENDPOINT·`
lint: apps/opik-frontend/src/api/prompts/usePromptsList.ts#L2
'api' is defined but never used
lint: apps/opik-frontend/src/api/prompts/usePromptsList.ts#L2
Replace `PROMPTS_REST_ENDPOINT,·QueryConfig` with `·PROMPTS_REST_ENDPOINT,·QueryConfig·`
lint: apps/opik-frontend/src/api/prompts/usePromptsList.ts#L2
'PROMPTS_REST_ENDPOINT' is defined but never used
lint: apps/opik-frontend/src/api/prompts/usePromptsList.ts#L3
Replace `Prompt` with `·Prompt·`
lint: apps/opik-frontend/src/api/prompts/usePromptsList.ts#L20
Replace `"id"` with `id`
lint: apps/opik-frontend/src/api/prompts/usePromptsList.ts#L21
Replace `"name"` with `name`
lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/setup-node@v3. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
lint: apps/opik-frontend/src/components/pages/PromptsPage/AddPromptDialog.tsx#L79
Invalid Tailwind CSS classnames order
lint: apps/opik-frontend/src/components/pages/PromptsPage/PromptsPage.tsx#L160
React Hook useCallback has unnecessary dependencies: 'navigate' and 'workspaceName'. Either exclude them or remove the dependency array