Skip to content

Commit

Permalink
fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
jahow committed Aug 22, 2023
1 parent c502379 commit b2e96f8
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 14 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@ import { LANG_2_TO_3_MAPPER } from '@geonetwork-ui/util/i18n'
import { FieldFilters } from '@geonetwork-ui/common/domain/search'
import {
CatalogRecord,
MetadataObject,
Organization,
} from '@geonetwork-ui/common/domain/record'
import { OrganizationsServiceInterface } from '@geonetwork-ui/common/domain/organizations.service.interface'
import { ElasticsearchService } from '../elasticsearch'
import { getAsUrl } from '@geonetwork-ui/metadata-converter'
import { MetadataObject } from '../types'

const IMAGE_URL = '/geonetwork/images/harvesting/'

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ import {
} from '@geonetwork-ui/common/domain/search'
import {
CatalogRecord,
MetadataObject,
Organization,
} from '@geonetwork-ui/common/domain/record'
import { OrganizationsServiceInterface } from '@geonetwork-ui/common/domain/organizations.service.interface'
Expand All @@ -23,6 +22,7 @@ import {
mapOrganization,
selectField,
} from '@geonetwork-ui/metadata-converter'
import { MetadataObject } from '../types'

const IMAGE_URL = '/geonetwork/images/harvesting/'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { deepFreeze } from '../utils/freeze'
import { EsSearchResponse } from '@geonetwork-ui/api/repository/gn4'

export const hitsOnly = (): EsSearchResponse =>
export const hitsOnly = () =>
deepFreeze({
hits: {
max_score: 1,
Expand Down Expand Up @@ -160,7 +159,7 @@ export const hitsOnly = (): EsSearchResponse =>
],
},
})
export const ES_FIXTURE_FULL_RESPONSE = (): EsSearchResponse =>
export const ES_FIXTURE_FULL_RESPONSE = () =>
deepFreeze({
took: 1,
timed_out: false,
Expand Down
2 changes: 1 addition & 1 deletion libs/common/fixtures/src/lib/records.fixtures.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { DatasetRecord } from '../../../domain/src/lib/record/metadata.model'
import { DatasetRecord } from '@geonetwork-ui/common/domain/record'
import { deepFreeze } from './utils/freeze'

export const DATASET_RECORDS: DatasetRecord[] = deepFreeze([
Expand Down
2 changes: 1 addition & 1 deletion libs/data-access/datafeeder/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"sourceRoot": "libs/data-access/datafeeder/src",
"prefix": "gn-ui",
"targets": {},
"tags": ["type:data-access"]
"tags": ["type:data-access", "type:api"]
}
2 changes: 1 addition & 1 deletion libs/data-access/gn4/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"sourceRoot": "libs/data-access/gn4/src",
"prefix": "gn-ui",
"targets": {},
"tags": ["type:data-access"]
"tags": ["type:data-access", "type:api"]
}
2 changes: 1 addition & 1 deletion libs/util/i18n/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
"outputs": ["{options.outputFile}"]
}
},
"tags": ["type:util", "scope:i18n"]
"tags": ["type:util", "scope:i18n", "scope:shared"]
}
6 changes: 1 addition & 5 deletions libs/util/shared/src/lib/utils/sort-by.spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
import {
sortByFromString,
sortByToString,
sortByToStrings,
} from '@geonetwork-ui/util/shared'
import { sortByFromString, sortByToString, sortByToStrings } from './sort-by'

describe('sortBy utils', () => {
describe('sortByToStrings', () => {
Expand Down

0 comments on commit b2e96f8

Please sign in to comment.