mirror of
https://github.com/facebook/docusaurus.git
synced 2025-06-10 23:02:56 +02:00
chore: clean up ESLint config, enable a few rules (#6514)
* chore: clean up ESLint config, enable a few rules * enable max-len for comments * fix build
This commit is contained in:
parent
b8ccb869f1
commit
aa446b7a9c
167 changed files with 1157 additions and 960 deletions
|
@ -168,7 +168,8 @@ function DocSearch({
|
|||
const transformItems = useRef<DocSearchModalProps['transformItems']>(
|
||||
(items) =>
|
||||
items.map((item) => {
|
||||
// If Algolia contains a external domain, we should navigate without relative URL
|
||||
// If Algolia contains a external domain, we should navigate without
|
||||
// relative URL
|
||||
if (isRegexpStringMatch(externalUrlRegex, item.url)) {
|
||||
return item;
|
||||
}
|
||||
|
|
|
@ -12,8 +12,8 @@ import type {Props} from '@theme/SearchMetadata';
|
|||
|
||||
// Override default/agnostic SearchMetadata to use Algolia-specific metadata
|
||||
function SearchMetadata({locale, version, tag}: Props): JSX.Element {
|
||||
// Seems safe to consider here the locale is the language,
|
||||
// as the existing docsearch:language filter is afaik a regular string-based filter
|
||||
// Seems safe to consider here the locale is the language, as the existing
|
||||
// docsearch:language filter is afaik a regular string-based filter
|
||||
const language = locale;
|
||||
|
||||
return (
|
||||
|
|
|
@ -8,7 +8,3 @@
|
|||
/// <reference types="@docusaurus/module-type-aliases" />
|
||||
/// <reference types="@docusaurus/theme-common" />
|
||||
/// <reference types="@docusaurus/theme-classic" />
|
||||
|
||||
export type FacetFilters = Required<
|
||||
Required<DocSearchProps>['searchParameters']
|
||||
>['facetFilters'];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue