Skip to content

Commit

Permalink
Adding eslint rule to prevent duplicate imports (#646)
Browse files Browse the repository at this point in the history
  • Loading branch information
IanWoodard authored Sep 29, 2023
1 parent b06aa4b commit 5e96ae4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 7 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ module.exports = {
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'prefer-const': 'error',
'default-case': 'error',
'no-duplicate-imports': 'error',
eqeqeq: ['error', 'smart'],
'simple-import-sort/imports': [
'error',
Expand Down
2 changes: 1 addition & 1 deletion src/brain/notifyOnGoCDStageEvent/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import {
GoCDBuildCause,
GoCDPipeline,
GoCDResponse,
GoCDStageData,
} from '@types';
import { GoCDStageData } from '@types';

import { getChangedStack } from '@/api/github/getChangedStack';
import { getRelevantCommit } from '@/api/github/getRelevantCommit';
Expand Down
3 changes: 1 addition & 2 deletions src/brain/requiredChecks/recordFailures.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { CheckRun } from '@/types';
import { Annotation } from '@/types';
import { Annotation, CheckRun } from '@/types';
import { db } from '@/utils/db';

interface RecordFailuresParams {
Expand Down
3 changes: 1 addition & 2 deletions src/utils/db/getFailureMessages.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { GETSENTRY_ORG, GETSENTRY_REPO_SLUG } from '@/config';
import { BuildStatus } from '@/config';
import { BuildStatus, GETSENTRY_ORG, GETSENTRY_REPO_SLUG } from '@/config';
import { SlackMessage } from '@/config/slackMessage';
import { db } from '@utils/db';
import { getTimestamp } from '@utils/db/getTimestamp';
Expand Down
3 changes: 1 addition & 2 deletions src/utils/metrics.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { BigQuery } from '@google-cloud/bigquery';
import * as Sentry from '@sentry/node';

import { DRY_RUN, PROJECT } from '@/config';
import { PRODUCT_AREA_LABEL_PREFIX } from '@/config';
import { DRY_RUN, PRODUCT_AREA_LABEL_PREFIX, PROJECT } from '@/config';

import {
calculateSLOViolationRoute,
Expand Down

0 comments on commit 5e96ae4

Please sign in to comment.