Skip to content

Fix some lint

Fix some lint #16

Triggered via push January 3, 2024 21:49
Status Failure
Total duration 4m 35s
Artifacts

lint.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 10 warnings
Lint: .cypress/integration/datasources_test/datasources_basic_ui.spec.js#L6
Replace `⏎··FONTEND_BASE_PATH,⏎··DATASOURCES_API_PREFIX,⏎··DATASOURCES_PATH,⏎}·from·'../../utils/constants'` with `·FONTEND_BASE_PATH,·DATASOURCES_API_PREFIX,·DATASOURCES_PATH·}·from·'../../utils/constants';`
Lint: .cypress/integration/datasources_test/datasources_basic_ui.spec.js#L54
Replace `⏎······'include',⏎······DATASOURCES_PATH.DATASOURCES_CONFIG_BASE·+·'/AmazonS3AWSGlue'⏎····` with `'include',·DATASOURCES_PATH.DATASOURCES_CONFIG_BASE·+·'/AmazonS3AWSGlue'`
Lint: .cypress/integration/datasources_test/datasources_basic_ui.spec.js#L68
Replace `⏎······'include',⏎······DATASOURCES_PATH.DATASOURCES_CONFIG_BASE·+·'/Prometheus'⏎····` with `'include',·DATASOURCES_PATH.DATASOURCES_CONFIG_BASE·+·'/Prometheus'`
Lint: .cypress/utils/constants.js#L17
Insert `,`
Lint: .cypress/utils/constants.js#L29
Insert `⏎·····`
Lint: .cypress/utils/constants.js#L30
Insert `⏎·····`
Lint: .cypress/utils/constants.js#L34
Insert `⏎·····`
Lint: .cypress/utils/constants.js#L35
Insert `⏎·····`
Lint: .cypress/utils/constants.js#L39
Insert `⏎·····`
Lint: .cypress/utils/constants.js#L40
Insert `⏎·····`
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 `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: .cypress/utils/constants.js#L68
Do not use force on click and type calls
Lint: .cypress/utils/constants.js#L76
Do not use force on click and type calls
Lint: .eslintrc.js#L1
File ignored by default.
Lint: public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx#L307
React Hook useMemo has a missing dependency: 'showModal'. Either include it or remove the dependency array
Lint: public/components/custom_panels/panel_modules/visualization_container/visualization_container.tsx#L312
React Hook useEffect has a missing dependency: 'loadVisaulization'. Either include it or remove the dependency array
Lint: public/components/metrics/sidebar/sidebar.tsx#L49
React Hook useEffect has a missing dependency: 'dispatch'. Either include it or remove the dependency array
Lint: public/components/metrics/view/metrics_grid.tsx#L120
React Hook useMemo has missing dependencies: 'allMetrics' and 'selectedMetricsIds'. Either include them or remove the dependency array