chore(lint): sort imports
This commit is contained in:
parent
145593a295
commit
2b2cbcf984
13 changed files with 42 additions and 41 deletions
|
|
@ -1,6 +1,7 @@
|
|||
import { name } from './package.json';
|
||||
import { plugins } from '../../rollup.base.config';
|
||||
|
||||
import { name } from './package.json';
|
||||
|
||||
export default {
|
||||
input: 'src/index.ts',
|
||||
external: ['react', 'react-dom'],
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import {
|
||||
AutocompleteState,
|
||||
PublicAutocompleteOptions,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
import React from 'react';
|
||||
import { createPortal } from 'react-dom';
|
||||
import {
|
||||
PublicAutocompleteOptions,
|
||||
AutocompleteState,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
|
||||
import { DocSearchHit, InternalDocSearchHit, SearchClient } from './types';
|
||||
import { DocSearchButton } from './DocSearchButton';
|
||||
import { DocSearchModal } from './DocSearchModal';
|
||||
import { DocSearchHit, InternalDocSearchHit, SearchClient } from './types';
|
||||
import { useDocSearchKeyboardEvents } from './useDocSearchKeyboardEvents';
|
||||
|
||||
export interface DocSearchProps
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
import React, { useState, useEffect } from 'react';
|
||||
import React, { useEffect, useState } from 'react';
|
||||
|
||||
import { SearchIcon } from './icons/SearchIcon';
|
||||
import { ControlKeyIcon } from './icons/ControlKeyIcon';
|
||||
import { SearchIcon } from './icons/SearchIcon';
|
||||
|
||||
const ACTION_KEY_DEFAULT = 'Ctrl';
|
||||
const ACTION_KEY_APPLE = '⌘';
|
||||
|
|
|
|||
|
|
@ -1,26 +1,26 @@
|
|||
import React from 'react';
|
||||
import {
|
||||
createAutocomplete,
|
||||
AutocompleteState,
|
||||
createAutocomplete,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
import { getAlgoliaResults } from '@francoischalifour/autocomplete-preset-algolia';
|
||||
import React from 'react';
|
||||
|
||||
import { MAX_QUERY_SIZE } from './constants';
|
||||
import { DocSearchProps } from './DocSearch';
|
||||
import { Footer } from './Footer';
|
||||
import { Hit } from './Hit';
|
||||
import { ScreenState } from './ScreenState';
|
||||
import { SearchBox } from './SearchBox';
|
||||
import { createStoredSearches } from './stored-searches';
|
||||
import {
|
||||
DocSearchHit,
|
||||
InternalDocSearchHit,
|
||||
StoredDocSearchHit,
|
||||
} from './types';
|
||||
import { groupBy, identity, noop } from './utils';
|
||||
import { createStoredSearches } from './stored-searches';
|
||||
import { useSearchClient } from './useSearchClient';
|
||||
import { useTrapFocus } from './useTrapFocus';
|
||||
import { useTouchEvents } from './useTouchEvents';
|
||||
import { DocSearchProps } from './DocSearch';
|
||||
import { Hit } from './Hit';
|
||||
import { SearchBox } from './SearchBox';
|
||||
import { ScreenState } from './ScreenState';
|
||||
import { Footer } from './Footer';
|
||||
import { useTrapFocus } from './useTrapFocus';
|
||||
import { groupBy, identity, noop } from './utils';
|
||||
|
||||
interface DocSearchModalProps extends DocSearchProps {
|
||||
initialScrollY: number;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
import React from 'react';
|
||||
|
||||
import { ErrorIcon } from './icons';
|
||||
|
||||
export function ErrorScreen() {
|
||||
|
|
|
|||
|
|
@ -1,12 +1,11 @@
|
|||
import React from 'react';
|
||||
import {
|
||||
AutocompleteApi,
|
||||
AutocompleteState,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
|
||||
import { InternalDocSearchHit } from './types';
|
||||
import React from 'react';
|
||||
|
||||
import { NoResultsIcon } from './icons';
|
||||
import { InternalDocSearchHit } from './types';
|
||||
|
||||
interface NoResultsScreenProps
|
||||
extends AutocompleteApi<
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import React from 'react';
|
||||
import {
|
||||
AutocompleteApi,
|
||||
AutocompleteState,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
import React from 'react';
|
||||
|
||||
import { Snippet } from './Snippet';
|
||||
import {
|
||||
DocSearchHit,
|
||||
InternalDocSearchHit,
|
||||
StoredDocSearchHit,
|
||||
} from './types';
|
||||
import { Snippet } from './Snippet';
|
||||
|
||||
interface ResultsProps<TItem>
|
||||
extends AutocompleteApi<
|
||||
|
|
|
|||
|
|
@ -1,12 +1,12 @@
|
|||
import React from 'react';
|
||||
import {
|
||||
AutocompleteApi,
|
||||
AutocompleteState,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
import React from 'react';
|
||||
|
||||
import { InternalDocSearchHit } from './types';
|
||||
import { SelectIcon, SourceIcon } from './icons';
|
||||
import { Results } from './Results';
|
||||
import { SourceIcon, SelectIcon } from './icons';
|
||||
import { InternalDocSearchHit } from './types';
|
||||
|
||||
interface ResultsScreenProps
|
||||
extends AutocompleteApi<
|
||||
|
|
|
|||
|
|
@ -1,15 +1,15 @@
|
|||
import React from 'react';
|
||||
import {
|
||||
AutocompleteApi,
|
||||
AutocompleteState,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
import React from 'react';
|
||||
|
||||
import { ErrorScreen } from './ErrorScreen';
|
||||
import { NoResultsScreen } from './NoResultsScreen';
|
||||
import { ResultsScreen } from './ResultsScreen';
|
||||
import { StartScreen } from './StartScreen';
|
||||
import { StoredSearchPlugin } from './stored-searches';
|
||||
import { InternalDocSearchHit, StoredDocSearchHit } from './types';
|
||||
import { StartScreen } from './StartScreen';
|
||||
import { ResultsScreen } from './ResultsScreen';
|
||||
import { NoResultsScreen } from './NoResultsScreen';
|
||||
import { ErrorScreen } from './ErrorScreen';
|
||||
|
||||
interface ScreenStateProps<TItem>
|
||||
extends AutocompleteApi<
|
||||
|
|
|
|||
|
|
@ -1,14 +1,14 @@
|
|||
import React, { MutableRefObject } from 'react';
|
||||
import {
|
||||
AutocompleteApi,
|
||||
AutocompleteState,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
import React, { MutableRefObject } from 'react';
|
||||
|
||||
import { MAX_QUERY_SIZE } from './constants';
|
||||
import { InternalDocSearchHit } from './types';
|
||||
import { SearchIcon } from './icons/SearchIcon';
|
||||
import { ResetIcon } from './icons/ResetIcon';
|
||||
import { LoadingIcon } from './icons/LoadingIcon';
|
||||
import { ResetIcon } from './icons/ResetIcon';
|
||||
import { SearchIcon } from './icons/SearchIcon';
|
||||
import { InternalDocSearchHit } from './types';
|
||||
|
||||
interface SearchBoxProps
|
||||
extends AutocompleteApi<
|
||||
|
|
|
|||
|
|
@ -1,13 +1,13 @@
|
|||
import React from 'react';
|
||||
import {
|
||||
AutocompleteApi,
|
||||
AutocompleteState,
|
||||
} from '@francoischalifour/autocomplete-core';
|
||||
import React from 'react';
|
||||
|
||||
import { StoredDocSearchHit } from './types';
|
||||
import { StoredSearchPlugin } from './stored-searches';
|
||||
import { RecentIcon, ResetIcon, StarIcon } from './icons';
|
||||
import { Results } from './Results';
|
||||
import { ResetIcon, RecentIcon, StarIcon } from './icons';
|
||||
import { StoredSearchPlugin } from './stored-searches';
|
||||
import { StoredDocSearchHit } from './types';
|
||||
|
||||
interface StartScreenProps
|
||||
extends AutocompleteApi<
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import algoliasearch from 'algoliasearch/dist/algoliasearch-lite.esm.browser';
|
||||
import React from 'react';
|
||||
|
||||
import { SearchClient } from './types';
|
||||
import { version } from './version';
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import React from 'react';
|
||||
import { AutocompleteApi } from '@francoischalifour/autocomplete-core';
|
||||
import React from 'react';
|
||||
|
||||
interface UseTouchEventsProps {
|
||||
getEnvironmentProps: AutocompleteApi<any>['getEnvironmentProps'];
|
||||
|
|
|
|||
Loading…
Reference in a new issue