Skip to content

Commit ec6b69e

Browse files
chore(recent-searches): disable no-console
1 parent ce110ce commit ec6b69e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/autocomplete-plugin-recent-searches/src/createRecentSearchesPlugin.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export function createRecentSearchesPlugin<TItem extends RecentSearchesItem>({
9292
// because we need to resolve the promise before getting the value.
9393
if (!Array.isArray(lastItemsRef.current)) {
9494
// @TODO: use the `warn` function from `autocomplete-core`
95+
// eslint-disable-next-line no-console
9596
console.warn(
9697
'The `getAlgoliaQuerySuggestionsFacetFilters` function is not supported with storages that return promises in `getAll`.'
9798
);
@@ -106,6 +107,7 @@ export function createRecentSearchesPlugin<TItem extends RecentSearchesItem>({
106107
// is called because we need to resolve the promise before getting the value.
107108
if (!Array.isArray(lastItemsRef.current)) {
108109
// @TODO: use the `warn` function from `autocomplete-core`
110+
// eslint-disable-next-line no-console
109111
console.warn(
110112
'The `getAlgoliaQuerySuggestionsHitsPerPage` function is not supported with storages that return promises in `getAll`.'
111113
);

0 commit comments

Comments
 (0)