CI: add yarn run lint to workflow (#102798)

* add yarn run lint to workflow

* rename

* Fix lint errors

* Fix lint errors
pull/102805/head
Kevin Minehart 3 months ago committed by GitHub
parent cbadf9faad
commit 91226fcb1e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 3
      .github/workflows/frontend-lint.yml
  2. 2
      public/app/features/dashboard-scene/settings/VersionsEditView.test.tsx
  3. 2
      public/app/features/provisioning/Job/JobStatus.tsx
  4. 2
      public/app/features/provisioning/hooks/useRepositoryAllJobs.ts

@ -30,7 +30,7 @@ jobs:
exit 1
fi
lint-frontend-prettier:
name: Prettier
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
@ -41,6 +41,7 @@ jobs:
cache-dependency-path: 'yarn.lock'
- run: yarn install --immutable --check-cache
- run: yarn run prettier:check
- run: yarn run lint
lint-fronetnd-typecheck:
name: Typecheck
runs-on: ubuntu-latest

@ -1,5 +1,5 @@
import { SceneTimeRange } from '@grafana/scenes';
import { config } from '@grafana/runtime';
import { SceneTimeRange } from '@grafana/scenes';
import { DashboardScene } from '../scene/DashboardScene';
import { activateFullSceneTree } from '../utils/test-utils';

@ -5,10 +5,10 @@ import { Alert, ControlledCollapse, LinkButton, Spinner, Stack, Text } from '@gr
import { useGetRepositoryQuery } from 'app/api/clients/provisioning';
import ProgressBar from '../Shared/ProgressBar';
import { useRepositoryAllJobs } from '../hooks/useRepositoryAllJobs';
import { getRepoHref } from '../utils/git';
import { JobSummary } from './JobSummary';
import { useRepositoryAllJobs } from '../hooks/useRepositoryAllJobs';
export interface JobStatusProps {
name: string;

@ -38,7 +38,7 @@ export function useRepositoryAllJobs({
watch = true,
sort = 'created-first',
}: RepositoryHistoricalJobsArgs = {}): [
(Job | HistoricJob)[] | undefined,
Array<Job | HistoricJob> | undefined,
ReturnType<typeof useListJobQuery>,
ReturnType<typeof useListHistoricJobQuery>,
] {

Loading…
Cancel
Save