Skip to content

Commit 807f8f8

Browse files
committed
fix lint errors
1 parent 465f392 commit 807f8f8

5 files changed

Lines changed: 12 additions & 16 deletions

File tree

jest.config.mjs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,9 @@ export default {
1515
],
1616
moduleNameMapper: {
1717
'^@solid-data-modules/contacts-rdflib$': '<rootDir>/__mocks__/contacts-rdflib.ts',
18-
},
19-
setupFilesAfterEnv: ['./test/helpers/setup.ts'],
20-
moduleNameMapper: {
2118
'^.+\\.css$': '<rootDir>/__mocks__/styleMock.js'
2219
},
20+
setupFilesAfterEnv: ['./test/helpers/setup.ts'],
2321
testMatch: ['**/?(*.)+(spec|test).[tj]s?(x)'],
2422
roots: ['<rootDir>/src', '<rootDir>/test', '<rootDir>/__mocks__'],
2523
}

src/v2/components/forms/peopleSearch/PeopleSearch.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -142,4 +142,4 @@ describe('SolidUIPeopleSearch', () => {
142142

143143
openSpy.mockRestore()
144144
})
145-
})
145+
})

src/v2/components/forms/peopleSearch/PeopleSearch.ts

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,7 @@ import {
1010
matchesPeopleSearchNameWords,
1111
mergePeopleSearchPerson,
1212
sortPeopleSearchPeople,
13-
type PeopleSearchPerson,
14-
type PeopleSearchRelationshipLabel
13+
type PeopleSearchPerson
1514
} from './peopleSearchHelpers'
1615

1716
export interface PeopleSearchSelectDetail {
@@ -96,7 +95,7 @@ export class PeopleSearch extends LitElement {
9695
this._user = authn.currentUser()
9796
this._resetDiscoveryState()
9897
if (this._user) {
99-
void this._ensureDiscovery()
98+
this._ensureDiscovery()
10099
}
101100
}
102101

@@ -109,7 +108,7 @@ export class PeopleSearch extends LitElement {
109108
}
110109

111110
if (!this._discoveryPromise) {
112-
void this._ensureDiscovery()
111+
this._ensureDiscovery()
113112
}
114113

115114
const suggestions = this._buildSuggestions(query)
@@ -162,7 +161,7 @@ export class PeopleSearch extends LitElement {
162161
if (changedProperties.has('store') && !changedProperties.has('_user')) {
163162
this._resetDiscoveryState()
164163
if (this._user) {
165-
void this._ensureDiscovery()
164+
this._ensureDiscovery()
166165
}
167166
}
168167
}
@@ -248,11 +247,10 @@ export class PeopleSearch extends LitElement {
248247
this._updateStatus(this._query, 0)
249248

250249
this._discoveryPromise = (async () => {
251-
const renderPerson = async (person: PeopleSearchPerson) => {
252-
const merged = this._mergePerson(person)
250+
const renderPerson = async (person: PeopleSearchPerson): Promise<void> => {
251+
this._mergePerson(person)
253252
this._refreshComboboxOptions(this._query)
254253
this._updateStatus(this._query, this._buildSuggestions(this._query).length)
255-
return merged
256254
}
257255

258256
await discoverPeopleSearchEntries({
@@ -283,7 +281,7 @@ export class PeopleSearch extends LitElement {
283281

284282
private _handleComboboxFocusIn () {
285283
if (!this._discoveryPromise && this._user) {
286-
void this._ensureDiscovery()
284+
this._ensureDiscovery()
287285
}
288286
this._refreshComboboxOptions(this._query)
289287
this._updateStatus(this._query, this._buildSuggestions(this._query).length)
@@ -332,4 +330,4 @@ export class PeopleSearch extends LitElement {
332330
</div>
333331
`
334332
}
335-
}
333+
}

src/v2/components/forms/peopleSearch/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,4 @@ const PEOPLE_SEARCH_TAG_NAME = 'solid-ui-people-search'
2020

2121
if (!customElements.get(PEOPLE_SEARCH_TAG_NAME)) {
2222
customElements.define(PEOPLE_SEARCH_TAG_NAME, PeopleSearch)
23-
}
23+
}

src/v2/components/forms/peopleSearch/peopleSearchHelpers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,4 +344,4 @@ async function discoverFoafPeople (
344344

345345
queue = nextQueue
346346
}
347-
}
347+
}

0 commit comments

Comments
 (0)