Skip to content

Commit 3847ad7

Browse files
committed
Fix all eslint errors
1 parent 8ea0e19 commit 3847ad7

15 files changed

+50
-60
lines changed

src/js/settings/components/classifai-settings/welcome-guide.js

+4-7
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ export const ClassifAIWelcomeGuide = ( { closeWelcomeGuide } ) => {
5050
<li>
5151
<strong>
5252
{ __(
53-
'Turn on the Feature you want to use. ',
53+
'Turn on the Feature you want to use.',
5454
'classifai'
5555
) }
5656
</strong>
@@ -66,10 +66,10 @@ export const ClassifAIWelcomeGuide = ( { closeWelcomeGuide } ) => {
6666
<li>
6767
<strong>
6868
{ __(
69-
'Connect that AI provider to the Feature you enabled. ',
69+
'Connect that AI provider to the Feature you enabled.',
7070
'classifai'
7171
) }
72-
</strong>
72+
</strong>{ ' ' }
7373
<a
7474
href="https://github.com/10up/classifai?tab=readme-ov-file#set-up-classification-via-ibm-watson"
7575
target="_blank"
@@ -98,10 +98,7 @@ export const ClassifAIWelcomeGuide = ( { closeWelcomeGuide } ) => {
9898
) }
9999
</p>
100100
<p>
101-
{ __(
102-
'If you need any help along the way, ',
103-
'classifai'
104-
) }
101+
{ __( 'If you need any help along the way,', 'classifai' ) }{ ' ' }
105102
<a
106103
href="https://github.com/10up/classifai#frequently-asked-questions"
107104
target="_blank"

src/js/settings/components/feature-additional-settings/excerpt-generation.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ export const ExcerptGenerationSettings = () => {
8181
<SettingsRow
8282
label={ __( 'Excerpt length', 'classifai' ) }
8383
description={ __(
84-
'How many words should the excerpt be? Note that the final result may not exactly match this, it often tends to exceed this number by 10-15 words.',
84+
'How many words should the excerpt be? Note that the final result may not exactly match this, it often tends to exceed this number by 1015 words.',
8585
'classifai'
8686
) }
8787
>

src/js/settings/components/feature-additional-settings/prompt-repeater.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,10 @@ export const PromptRepeater = ( props ) => {
8282
<p className="classifai-original-prompt">
8383
<strong>
8484
{ __(
85-
'ClassifAI default prompt: ',
85+
'ClassifAI default prompt:',
8686
'classifai'
8787
) }
88-
</strong>
88+
</strong>{ ' ' }
8989
{ prompt.prompt }
9090
</p>
9191
</>

src/js/settings/components/feature-additional-settings/recommended-content.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ const PersonalizerDeprecationNotice = () => (
3030
'new Personalizer resources can no longer be created in Azure. This is currently the only provider available for the Recommended Content feature and as such, this feature will not work unless you had previously created a Personalizer resource. The Azure AI Personalizer provider is deprecated and will be removed in a future release. We hope to replace this provider with another one in a coming release to continue to support this feature',
3131
'classifai'
3232
) }
33-
{ __( '(see ', 'classifai' ) }
33+
{ __( '(see', 'classifai' ) }{ ' ' }
3434
<a
3535
href="https://github.com/10up/classifai/issues/392"
3636
target="_blank"

src/js/settings/components/feature-additional-settings/term-cleanup.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,17 @@ export const TermCleanupSettings = () => {
5757

5858
return (
5959
<>
60-
{ __( 'Install and activate the ', 'classifai' ) }
60+
{ __( 'Install and activate the', 'classifai' ) }{ ' ' }
6161
<a
6262
title={ __( 'Download ElasticPress', 'classifai' ) }
6363
href="https://wordpress.org/plugins/elasticpress/"
6464
target="_blank"
6565
rel="noreferrer"
6666
>
6767
{ __( 'ElasticPress', 'classifai' ) }
68-
</a>
68+
</a>{ ' ' }
6969
{ __(
70-
' plugin to use Elasticsearch for finding similar terms.',
70+
'plugin to use Elasticsearch for finding similar terms.',
7171
'classifai'
7272
) }
7373
</>

src/js/settings/components/provider-settings/amazon-polly.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -67,16 +67,11 @@ export const AmazonPollySettings = ( { isConfigured = false } ) => {
6767
label={ __( 'Region', 'classifai' ) }
6868
description={
6969
<>
70-
{ ' ' }
7170
{ __(
72-
'Enter the AWS Region. eg: ',
71+
'Enter the AWS Region. eg:',
7372
'classifai'
74-
) }
75-
<code>
76-
{ ' ' }
77-
{ __( 'us-east-1', 'classifai' ) }{ ' ' }
78-
</code>
79-
.
73+
) }{ ' ' }
74+
<code>{ __( 'us-east-1', 'classifai' ) }</code>.
8075
</>
8176
}
8277
>
@@ -95,18 +90,18 @@ export const AmazonPollySettings = ( { isConfigured = false } ) => {
9590
label={ __( 'Engine', 'classifai' ) }
9691
description={
9792
<>
98-
{ __( 'Amazon Polly offers ', 'classifai' ) }
93+
{ __( 'Amazon Polly offers', 'classifai' ) }{ ' ' }
9994
<a href="https://docs.aws.amazon.com/polly/latest/dg/long-form-voice-overview.html">
10095
{ __( 'Long-Form', 'classifai' ) }
10196
</a>
10297
,{ ' ' }
10398
<a href="https://docs.aws.amazon.com/polly/latest/dg/NTTS-main.html">
10499
{ __( 'Neural', 'classifai' ) }{ ' ' }
105-
</a>
100+
</a>{ ' ' }
106101
{ __(
107-
' and Standard text-to-speech voices. Please check the ',
102+
'and Standard text-to-speech voices. Please check the',
108103
'classifai'
109-
) }
104+
) }{ ' ' }
110105
<a
111106
href="https://aws.amazon.com/polly/pricing/"
112107
title="Pricing"

src/js/settings/components/provider-settings/azure-ai-vision.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export const AzureAIVisionSettings = ( { isConfigured = false } ) => {
7878
<SettingsRow
7979
label={ __( 'Confidence threshold', 'classifai' ) }
8080
description={ __(
81-
'Minimum confidence score for automatically added generated text, numeric value from 0-100. Recommended to be set to at least 70.',
81+
'Minimum confidence score for automatically added generated text, numeric value from 0100. Recommended to be set to at least 70.',
8282
'classifai'
8383
) }
8484
>
@@ -101,7 +101,7 @@ export const AzureAIVisionSettings = ( { isConfigured = false } ) => {
101101
<SettingsRow
102102
label={ __( 'Confidence threshold', 'classifai' ) }
103103
description={ __(
104-
'Minimum confidence score for automatically added image tags, numeric value from 0-100. Recommended to be set to at least 70.',
104+
'Minimum confidence score for automatically added image tags, numeric value from 0100. Recommended to be set to at least 70.',
105105
'classifai'
106106
) }
107107
>

src/js/settings/components/provider-settings/azure-text-to-speech.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -35,18 +35,18 @@ export const AzureTextToSpeechSettings = ( { isConfigured = false } ) => {
3535

3636
const Description = () => (
3737
<>
38-
{ __( 'Text to Speech region endpoint, e.g. ', 'classifai' ) }
38+
{ __( 'Text to Speech region endpoint, e.g.', 'classifai' ) }{ ' ' }
3939
<code>
4040
{ __(
4141
'https://LOCATION.tts.speech.microsoft.com/',
4242
'classifai'
4343
) }
4444
</code>
4545
{ '. ' }
46-
{ __( ' Replace ', 'classifai' ) }
47-
<code>{ __( 'LOCATION', 'classifai' ) }</code>
46+
{ __( 'Replace', 'classifai' ) }{ ' ' }
47+
<code>{ __( 'LOCATION', 'classifai' ) }</code>{ ' ' }
4848
{ __(
49-
' with the Location/Region you selected for the resource in Azure.',
49+
'with the Location/Region you selected for the resource in Azure.',
5050
'classifai'
5151
) }
5252
</>

src/js/settings/components/provider-settings/chrome-ai.js

+7-7
Original file line numberDiff line numberDiff line change
@@ -58,17 +58,17 @@ export const ChromeAISettings = () => {
5858
return (
5959
<>
6060
{ __(
61-
'Chrome built-in AI is not available on your browser. Please follow the steps ',
61+
'Chrome built-in AI is not available on your browser. Please follow the steps',
6262
'classifai'
63-
) }
63+
) }{ ' ' }
6464
<a
6565
href="https://10up.github.io/classifai/tutorial-chrome-built-in-ai.html"
6666
target="_blank"
6767
rel="noopener noreferrer"
6868
>
6969
{ __( 'here', 'classifai' ) }
70-
</a>
71-
{ __( ' to enable it.', 'classifai' ) }
70+
</a>{ ' ' }
71+
{ __( 'to enable it.', 'classifai' ) }
7272
</>
7373
);
7474
};
@@ -80,10 +80,10 @@ export const ChromeAISettings = () => {
8080
description={ <Description hasSupport={ supported } /> }
8181
>
8282
{ supported && <Icon icon="yes-alt" /> }
83-
{ ! supported && <Icon icon="dismiss" /> }
83+
{ ! supported && <Icon icon="dismiss" /> }{ ' ' }
8484
{ supported
85-
? __( ' Supported', 'classifai' )
86-
: __( ' Not Supported', 'classifai' ) }
85+
? __( 'Supported', 'classifai' )
86+
: __( 'Not Supported', 'classifai' ) }
8787
</SettingsRow>
8888
</>
8989
);

src/js/settings/components/provider-settings/ibm-watson-nlu.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ export const IBMWatsonNLUSettings = ( { isConfigured = false } ) => {
4949
href="https://cloud.ibm.com/registration"
5050
>
5151
{ __( 'Register for one', 'classifai' ) }
52-
</a>
53-
{ __( ' and set up a ', 'classifai' ) }
52+
</a>{ ' ' }
53+
{ __( 'and set up a', 'classifai' ) }{ ' ' }
5454
<a href="https://cloud.ibm.com/catalog/services/natural-language-understanding">
5555
{ __( 'Natural Language Understanding', 'classifai' ) }
56-
</a>
57-
{ __( ' Resource to get your API key.', 'classifai' ) }
56+
</a>{ ' ' }
57+
{ __( 'Resource to get your API key.', 'classifai' ) }
5858
</>
5959
);
6060

src/js/settings/components/provider-settings/openai-chatgpt.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const OpenAIChatGPTSettings = ( { isConfigured = false } ) => {
4141

4242
const Description = () => (
4343
<>
44-
{ __( "Don't have an OpenAI account yet? ", 'classifai' ) }
44+
{ __( "Don't have an OpenAI account yet?", 'classifai' ) }{ ' ' }
4545
<a
4646
title={ __( 'Sign up for an OpenAI account', 'classifai' ) }
4747
href="https://platform.openai.com/signup"
@@ -53,17 +53,16 @@ export const OpenAIChatGPTSettings = ( { isConfigured = false } ) => {
5353
);
5454
const promptExamples = (
5555
<>
56-
{ __( 'Add a custom prompt, if desired. ', 'classifai' ) }
57-
{ __( 'See our ', 'classifai' ) }
56+
{ __( 'Add a custom prompt, if desired. See our', 'classifai' ) }{ ' ' }
5857
<a
5958
href="https://10up.github.io/classifai/tutorial-prompt-examples.html"
6059
target="_blank"
6160
rel="noopener noreferrer"
6261
>
6362
{ __( 'documentation', 'classifai' ) }
64-
</a>
63+
</a>{ ' ' }
6564
{ __(
66-
' for some example prompts you can try that have been tested for specific use cases.',
65+
'for some example prompts you can try that have been tested for specific use cases.',
6766
'classifai'
6867
) }
6968
</>

src/js/settings/components/provider-settings/openai-dalle.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const OpenAIDallESettings = ( { isConfigured = false } ) => {
3535

3636
const Description = () => (
3737
<>
38-
{ __( "Don't have an OpenAI account yet? ", 'classifai' ) }
38+
{ __( "Don't have an OpenAI account yet?", 'classifai' ) }{ ' ' }
3939
<a
4040
title={ __( 'Sign up for an OpenAI account', 'classifai' ) }
4141
href="https://platform.openai.com/signup"

src/js/settings/components/provider-settings/openai-text-to-speech.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ export const OpenAITextToSpeechSettings = ( { isConfigured = false } ) => {
3535

3636
const Description = () => (
3737
<>
38-
{ __( "Don't have an OpenAI account yet? ", 'classifai' ) }
38+
{ __( "Don't have an OpenAI account yet?", 'classifai' ) }{ ' ' }
3939
<a
4040
title={ __( 'Sign up for an OpenAI account', 'classifai' ) }
4141
href="https://platform.openai.com/signup"
@@ -65,7 +65,7 @@ export const OpenAITextToSpeechSettings = ( { isConfigured = false } ) => {
6565
label={ __( 'TTS model', 'classifai' ) }
6666
description={
6767
<>
68-
{ __( 'Select a ', 'classifai' ) }
68+
{ __( 'Select a', 'classifai' ) }{ ' ' }
6969
<a
7070
href="https://platform.openai.com/docs/models/tts"
7171
title={ __(
@@ -76,8 +76,8 @@ export const OpenAITextToSpeechSettings = ( { isConfigured = false } ) => {
7676
rel="noreferrer"
7777
>
7878
{ __( 'model', 'classifai' ) }
79-
</a>
80-
{ __( ' depending on your requirement.', 'classifai' ) }
79+
</a>{ ' ' }
80+
{ __( 'depending on your requirement.', 'classifai' ) }
8181
</>
8282
}
8383
>
@@ -108,7 +108,7 @@ export const OpenAITextToSpeechSettings = ( { isConfigured = false } ) => {
108108
label={ __( 'Voice', 'classifai' ) }
109109
description={
110110
<>
111-
{ __( 'Select the speech ', 'classifai' ) }
111+
{ __( 'Select the speech', 'classifai' ) }{ ' ' }
112112
<a
113113
href="https://platform.openai.com/docs/models/tts"
114114
target="_blank"

src/js/settings/components/provider-settings/openai.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { SettingsRow } from '../settings-row';
1818
export const OpenAISettings = ( { providerSettings, onChange } ) => {
1919
const Description = () => (
2020
<>
21-
{ __( "Don't have an OpenAI account yet? ", 'classifai' ) }
21+
{ __( "Don't have an OpenAI account yet?", 'classifai' ) }{ ' ' }
2222
<a
2323
title={ __( 'Sign up for an OpenAI account', 'classifai' ) }
2424
href="https://platform.openai.com/signup"

src/js/settings/components/provider-settings/xai-grok.js

+4-5
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const XAIGrokSettings = ( { isConfigured = false } ) => {
4141

4242
const Description = () => (
4343
<>
44-
{ __( "Don't have an xAI account yet? ", 'classifai' ) }
44+
{ __( "Don't have an xAI account yet?", 'classifai' ) }{ ' ' }
4545
<a
4646
title={ __( 'Sign up for an xAI account', 'classifai' ) }
4747
href="https://accounts.x.ai/sign-up"
@@ -53,17 +53,16 @@ export const XAIGrokSettings = ( { isConfigured = false } ) => {
5353
);
5454
const promptExamples = (
5555
<>
56-
{ __( 'Add a custom prompt, if desired. ', 'classifai' ) }
57-
{ __( 'See our ', 'classifai' ) }
56+
{ __( 'Add a custom prompt, if desired. See our', 'classifai' ) }{ ' ' }
5857
<a
5958
href="https://10up.github.io/classifai/tutorial-prompt-examples.html"
6059
target="_blank"
6160
rel="noopener noreferrer"
6261
>
6362
{ __( 'documentation', 'classifai' ) }
64-
</a>
63+
</a>{ ' ' }
6564
{ __(
66-
' for some example prompts you can try that have been tested for specific use cases.',
65+
'for some example prompts you can try that have been tested for specific use cases.',
6766
'classifai'
6867
) }
6968
</>

0 commit comments

Comments
 (0)