Skip to content

Commit

Permalink
Fixes linting issues
Browse files Browse the repository at this point in the history
  • Loading branch information
gudjong committed Nov 22, 2024
1 parent c2dda61 commit 2f368e2
Show file tree
Hide file tree
Showing 9 changed files with 6 additions and 23 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {
DEFENDER_ROUTE,
} from '@island.is/judicial-system/consts'
import {
capitalize,
enumerate,
formatCaseType,
formatDate,
Expand All @@ -14,11 +13,7 @@ import {
laws,
readableIndictmentSubtypes,
} from '@island.is/judicial-system/formatters'
import {
AdvocateType,
Gender,
UserRole,
} from '@island.is/judicial-system/types'
import { Gender, UserRole } from '@island.is/judicial-system/types'
import {
CaseCustodyRestrictions,
CaseLegalProvisions,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import {
CaseState,
CaseType,
EventType,
getIndictmentVerdictAppealDeadlineStatus,
IndictmentCaseReviewDecision,
isCourtOfAppealsUser,
isDefenceUser,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,6 @@ type GivenWhenThen = (
describe('CivilClaimantController - Update', () => {
const caseId = uuid()
const civilClaimantId = uuid()
const civilClaimaint = {
id: civilClaimantId,
caseId,
nationalId: uuid(),
name: 'Original Name',
} as CivilClaimant

let mockMessageService: MessageService
let mockCivilClaimantModel: typeof CivilClaimant
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ import { CanActivate } from '@nestjs/common'
import { TokenGuard } from '@island.is/judicial-system/auth'

import { CaseExistsGuard } from '../../../case'
import { DefendantExistsGuard } from '../../guards/defendantExists.guard'
import { InternalDefendantController } from '../../internalDefendant.controller'

describe('InternalDefendantController - guards', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ import {
lowercase,
} from '@island.is/judicial-system/formatters'
import {
AdvocateType,
CaseAppealRulingDecision,
CaseCustodyRestrictions,
CaseDecision,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { uuid } from 'uuidv4'
import { getModelToken } from '@nestjs/sequelize'
import { Test } from '@nestjs/testing'

import { FormatMessage, IntlService } from '@island.is/cms-translations'
import { IntlService } from '@island.is/cms-translations'
import { createTestIntl } from '@island.is/cms-translations/test'
import { EmailService } from '@island.is/email-service'
import { LOGGER_PROVIDER } from '@island.is/logging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@ import { uuid } from 'uuidv4'
import { EmailService } from '@island.is/email-service'
import { ConfigType } from '@island.is/nest/config'

import {
DEFENDER_INDICTMENT_ROUTE,
DEFENDER_ROUTE,
} from '@island.is/judicial-system/consts'
import { DEFENDER_ROUTE } from '@island.is/judicial-system/consts'
import {
CaseNotificationType,
CaseType,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { Base64 } from 'js-base64'
import { Includeable, Sequelize } from 'sequelize'
import { Includeable } from 'sequelize'
import { Transaction } from 'sequelize/types'

import {
Expand All @@ -8,7 +8,7 @@ import {
Injectable,
InternalServerErrorException,
} from '@nestjs/common'
import { InjectConnection, InjectModel } from '@nestjs/sequelize'
import { InjectModel } from '@nestjs/sequelize'

import type { Logger } from '@island.is/logging'
import { LOGGER_PROVIDER } from '@island.is/logging'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ import {
PageTitle,
SectionHeading,
} from '@island.is/judicial-system-web/src/components'
import { CaseFileCategory } from '@island.is/judicial-system-web/src/graphql/schema'
import {
useDefendants,
useS3Upload,
useUploadFiles,
} from '@island.is/judicial-system-web/src/utils/hooks'

import { strings } from './SendToPrisonAdmin.strings'
import { CaseFileCategory } from '@island.is/judicial-system-web/src/graphql/schema'

enum AvailableModal {
SUCCESS = 'SUCCESS',
Expand Down

0 comments on commit 2f368e2

Please sign in to comment.