Skip to content

Commit 93d4397

Browse files
fix lint
1 parent 34bfd13 commit 93d4397

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

adapters/docusaurus-theme-search-algolia/src/theme/SearchTranslations/index.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/**
2-
* Copyright (c) Facebook, Inc. and its affiliates.
2+
* Copyright (c) Facebook, Inc. And its affiliates.
33
*
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*/
77

8-
import {translate} from '@docusaurus/Translate';
9-
10-
import type {DocSearchTranslations} from '@docsearch/react';
8+
import type { DocSearchTranslations } from '@docsearch/react';
9+
import { translate } from '@docusaurus/Translate';
1110

1211
const translations: DocSearchTranslations & {
1312
placeholder: string;
@@ -128,8 +127,7 @@ const translations: DocSearchTranslations & {
128127
placeholderTextAskAiStreaming: translate({
129128
id: 'theme.SearchModal.searchBox.placeholderTextAskAiStreaming',
130129
message: 'Answering...',
131-
description:
132-
'The placeholder text for search box when AI is streaming an answer',
130+
description: 'The placeholder text for search box when AI is streaming an answer',
133131
}),
134132
enterKeyHint: translate({
135133
id: 'theme.SearchModal.searchBox.enterKeyHint',
@@ -221,8 +219,7 @@ const translations: DocSearchTranslations & {
221219
askAiScreen: {
222220
disclaimerText: translate({
223221
id: 'theme.SearchModal.askAiScreen.disclaimerText',
224-
message:
225-
'Answers are generated with AI which can make mistakes. Verify responses.',
222+
message: 'Answers are generated with AI which can make mistakes. Verify responses.',
226223
description: 'The disclaimer text for AI answers',
227224
}),
228225
relatedSourcesText: translate({

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"cy:run:chrome": "yarn run cy:run --browser chrome",
1616
"cy:run:edge": "yarn run cy:run --browser edge",
1717
"cy:run:firefox": "yarn run cy:run --browser firefox",
18-
"cy:run": "start-server-and-test 'yarn website:test' http://localhost:3000 'cypress run --headless'",
18+
"cy:run": "start-server-and-test 'yarn workspace @docsearch/docusaurus-adapter build && yarn website:test' http://localhost:3000 'cypress run --headless'",
1919
"cy:verify": "cypress verify",
2020
"lint:css": "stylelint **/src/**/*.css",
2121
"lint": "eslint .",

0 commit comments

Comments
 (0)