Skip to content

[Bug] Remove unused import #138

[Bug] Remove unused import

[Bug] Remove unused import #138

Triggered via pull request September 5, 2024 17:06
Status Failure
Total duration 4m 30s
Artifacts

lint.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 5 warnings
Lint: public/components/main/main.tsx#L6
'Fragment' is defined but never used. Allowed unused vars must match /^_/u
Lint: public/components/main/main.tsx#L26
`csstype` import should occur before import of `./reports_table`
Lint: public/components/main/main.tsx#L280
Insert `⏎···········`
Lint: public/components/main/main.tsx#L281
Insert `··`
Lint: public/components/main/main.tsx#L282
Insert `··`
Lint: public/components/main/main.tsx#L285
Replace `'s'` with `"s"`
Lint: public/components/main/main.tsx#L289
Replace `'s'` with `"s"`
Lint: public/components/main/main.tsx#L311
Replace `'s'` with `"s"`
Lint: public/components/main/main.tsx#L315
["httpClient"] is better written in dot notation
Lint: public/components/main/main.tsx#L325
Replace `'s'` with `"s"`
Lint
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
Lint
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v1, lots0logs/gh-action-get-changed-files@2.2.2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint
The `set-output` command is deprecated and will be disabled soon. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
Lint: public/components/main/main.tsx#L237
React Hook useEffect has missing dependencies: 'handleCreateReportDefinitionSuccessToast', 'handleDeleteReportDefinitionSuccessToast', 'handleEditReportDefinitionSuccessToast', 'props', 'refreshReportsDefinitionsTable', and 'refreshReportsTable'. Either include them or remove the dependency array. However, 'props' will change when *any* prop changes, so the preferred fix is to destructure the 'props' object outside of the useEffect call and refer to those specific props inside useEffect