Skip to content

Commit 8ea86eb

Browse files
authored
Merge pull request #3411 from topcoder-platform/develop-lint-fix
fixed lint issues
2 parents b4fdfb8 + 8cf0410 commit 8ea86eb

File tree

13 files changed

+3355
-2490
lines changed

13 files changed

+3355
-2490
lines changed

package-lock.json

+3,190-2,278
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/shared/components/Dashboard/CurrentActivity/Challenges/index.jsx

+24-32
Original file line numberDiff line numberDiff line change
@@ -87,44 +87,36 @@ export default function Challenges({
8787
You have no active challenges at this moment. What are
8888
you interested in?
8989
‌
90-
{
91-
<Link
92-
openNewTab
93-
to={config.URL.ARENA}
94-
>
95-
Competitive Programming
96-
</Link>
97-
}
90+
<Link
91+
openNewTab
92+
to={config.URL.ARENA}
93+
>
94+
Competitive Programming
95+
</Link>
9896
?
9997
&zwnj;
100-
{
101-
<Link
102-
openNewTab
103-
to="/challenges?filter[tracks][data_science]=true"
104-
>
105-
Data Science
106-
</Link>
107-
}
98+
<Link
99+
openNewTab
100+
to="/challenges?filter[tracks][data_science]=true"
101+
>
102+
Data Science
103+
</Link>
108104
?
109105
&zwnj;
110-
{
111-
<Link
112-
openNewTab
113-
to="/challenges?filter[tracks][design]=true"
114-
>
115-
Design
116-
</Link>
117-
}
106+
<Link
107+
openNewTab
108+
to="/challenges?filter[tracks][design]=true"
109+
>
110+
Design
111+
</Link>
118112
?
119113
&zwnj;
120-
{
121-
<Link
122-
openNewTab
123-
to="/challenges?filter[tracks][develop]=true"
124-
>
125-
Software Development
126-
</Link>
127-
}
114+
<Link
115+
openNewTab
116+
to="/challenges?filter[tracks][develop]=true"
117+
>
118+
Software Development
119+
</Link>
128120
?
129121
</p>
130122
</div>

src/shared/components/Settings/Profile/BasicInfo/index.jsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -923,9 +923,7 @@ export default class BasicInfo extends ConsentComponent {
923923
disabled={!canModifyTrait}
924924
onClick={this.onHandleSaveBasicInfo}
925925
>
926-
{
927-
'Save Changes'
928-
}
926+
Save Changes
929927
</PrimaryButton>
930928
</div>
931929
</div>

src/shared/components/SubmissionPage/Submit/index.jsx

+25-33
Original file line numberDiff line numberDiff line change
@@ -224,16 +224,14 @@ Please follow the instructions on the Challenge Details page regarding
224224
</ol>
225225
<p>For detailed information on packaging your submission, please visit the
226226
&zwnj;
227-
{
228-
<a
229-
href="https://help.topcoder.com/hc/en-us/articles/
230-
219122667-Formatting-Your-Submission-for-Design-Challenges"
231-
target="_blank"
232-
rel="noopener noreferrer"
233-
>
234-
help center.
235-
</a>
236-
}
227+
<a
228+
href="https://help.topcoder.com/hc/en-us/articles/
229+
219122667-Formatting-Your-Submission-for-Design-Challenges"
230+
target="_blank"
231+
rel="noopener noreferrer"
232+
>
233+
help center.
234+
</a>
237235
</p>
238236
</div>
239237
) : null }
@@ -268,27 +266,23 @@ Please follow the instructions on the Challenge Details page regarding
268266
If you are having trouble submitting, please send
269267
your submission to
270268
&zwnj;
271-
{
272-
<a
273-
href="mailto://[email protected]"
274-
>
275-
276-
</a>
277-
}
269+
<a
270+
href="mailto://[email protected]"
271+
>
272+
273+
</a>
278274
</p>
279275
)
280276
: (
281277
<p>
282278
If you are having trouble uploading your file, please send
283279
your submission to
284280
&zwnj;
285-
{
286-
<a
287-
href="mailto://[email protected]"
288-
>
289-
290-
</a>
291-
}
281+
<a
282+
href="mailto://[email protected]"
283+
>
284+
285+
</a>
292286
</p>
293287
)}
294288
</div>
@@ -297,15 +291,13 @@ Please follow the instructions on the Challenge Details page regarding
297291
<p>
298292
Submitting your files means you hereby agree to the
299293
&zwnj;
300-
{
301-
<a
302-
href={config.URL.INFO.TOPCODER_TERMS}
303-
rel="noreferrer noopener"
304-
target="_blank"
305-
>
306-
Topcoder terms of use
307-
</a>
308-
}
294+
<a
295+
href={config.URL.INFO.TOPCODER_TERMS}
296+
rel="noreferrer noopener"
297+
target="_blank"
298+
>
299+
Topcoder terms of use
300+
</a>
309301
&zwnj;
310302
and to the extent your uploaded file wins a topcoder Competition,
311303
you hereby assign, grant and transfer and agree to assign, grant and

src/shared/components/TopcoderHeader/mobile/Header/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export default function Header({
2525
styleName="header"
2626
tabIndex={0}
2727
>
28-
{<span aria-label="Topcoder Homepage" role="banner"><LogoTopcoder styleName="logo" /></span>}
28+
<span aria-label="Topcoder Homepage" role="banner"><LogoTopcoder styleName="logo" /></span>
2929
<div styleName="menu">
3030
Menu
3131
</div>

src/shared/components/challenge-detail/Header/index.jsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -219,11 +219,9 @@ export default function ChallengeHeader(props) {
219219
<div>
220220
Status:
221221
&zwnj;
222-
{
223-
<span styleName="deadline-highlighted">
224-
{_.upperFirst(_.lowerCase(status))}
225-
</span>
226-
}
222+
<span styleName="deadline-highlighted">
223+
{_.upperFirst(_.lowerCase(status))}
224+
</span>
227225
</div>
228226
);
229227
break;

src/shared/components/challenge-detail/Specification/SideBar/index.jsx

+12-13
Original file line numberDiff line numberDiff line change
@@ -206,22 +206,23 @@ Your Design Files:
206206
</h3>
207207
<ol>
208208
<li>
209-
{'Look for instructions in this challenge regarding what files to provide.'}
209+
Look for instructions in this challenge regarding what files to provide.
210210
</li>
211211
<li>
212-
{'Place your submission files into a "Submission.zip" file.'}
212+
Place your submission files into a &quot;Submission.zip&quot; file.
213213
</li>
214214
<li>
215-
{'Place all of your source files into a "Source.zip" file.'}
215+
Place all of your source files into a &quot;Source.zip&quot; file.
216216
</li>
217217
<li>
218-
{'Declare your fonts, stock photos, and icons in a "Declaration.txt" file.'}
218+
Declare your fonts, stock photos, and icons in a &quot;Declaration.txt&quot; file.
219219
</li>
220220
<li>
221-
{'Create a JPG preview file.'}
221+
Create a JPG preview file.
222222
</li>
223223
<li>
224-
{'Place the 4 files you just created into a single zip file. This will be what you upload.'}
224+
Place the 4 files you just created into a single zip file.
225+
This will be what you upload.
225226
</li>
226227
</ol>
227228
<p styleName="link-like-paragraph">
@@ -249,21 +250,19 @@ Screening:
249250
<p styleName="link-like-paragraph">
250251
All submissions are screened for eligibility before the challenge
251252
holder picks winners. Don
252-
{"'"}
253+
&quot;
253254
t let your hard work go to waste. Learn more about how to
254-
{' '}
255+
&nbsp;
255256
<a href="https://help.topcoder.com/hc/en-us/articles/217959577-How-to-Pass-Screening-in-Design-Challenges">
256257
pass screening.
257258
</a>
258259
</p>
259260
<p styleName="link-like-paragraph">
260261
Questions?
261262
&zwnj;
262-
{
263-
<a href={forumLink}>
264-
Ask in the Challenge Discussion Forums.
265-
</a>
266-
}
263+
<a href={forumLink}>
264+
Ask in the Challenge Discussion Forums.
265+
</a>
267266
</p>
268267
<h2>
269268
SOURCE FILES:

src/shared/components/challenge-detail/Specification/index.jsx

+15-23
Original file line numberDiff line numberDiff line change
@@ -391,12 +391,9 @@ How To Submit
391391
<li>
392392
New to Studio?
393393
&zwnj;
394-
{
395-
<a href={config.URL.INFO.DESIGN_CHALLENGE_TYPES}>
396-
Learn how to compete here
397-
</a>
398-
}
399-
.
394+
<a href={config.URL.INFO.DESIGN_CHALLENGE_TYPES}>
395+
Learn how to compete here
396+
</a>
400397
</li>
401398
<li>
402399
Upload your submission in three parts (
@@ -458,15 +455,13 @@ Payments
458455
considered as per Wipro standard currency conversion
459456
guidelines. Please refer to policy document at
460457
&zwnj;
461-
{
462-
<a
463-
href="https://wipro365.sharepoint.com/sites/wipro-people-policies/wipro%20policies/TopGear-RewardPoints-Policy.pdf"
464-
rel="noopener noreferrer"
465-
target="_blank"
466-
>
458+
<a
459+
href="https://wipro365.sharepoint.com/sites/wipro-people-policies/wipro%20policies/TopGear-RewardPoints-Policy.pdf"
460+
rel="noopener noreferrer"
461+
target="_blank"
462+
>
467463
https://wipro365.sharepoint.com/sites/wipro-people-policies/wipro%20policies/TopGear-RewardPoints-Policy.pdf
468-
</a>
469-
}
464+
</a>
470465
&zwnj;
471466
for details regarding the policy.
472467
</p>
@@ -479,16 +474,13 @@ https://wipro365.sharepoint.com/sites/wipro-people-policies/wipro%20policies/Top
479474
profile to receive payments, and general payment questions,
480475
please refer to
481476
&zwnj;
482-
{
483-
<a
484-
href="https://help.topcoder.com/hc/en-us/articles/217482038-Payment-Policies-and-Instructions"
485-
rel="noopener noreferrer"
486-
target="_blank"
487-
>
477+
<a
478+
href="https://help.topcoder.com/hc/en-us/articles/217482038-Payment-Policies-and-Instructions"
479+
rel="noopener noreferrer"
480+
target="_blank"
481+
>
488482
https://help.topcoder.com/hc/en-us/articles/217482038-Payment-Policies-and-Instructions
489-
</a>
490-
}
491-
.
483+
</a>
492484
</p>
493485
)
494486
}

src/shared/components/challenge-detail/Winners/Winner/index.jsx

+22-24
Original file line numberDiff line numberDiff line change
@@ -40,32 +40,30 @@ export default function Winner({
4040

4141
return (
4242
<div styleName={`winner ${placeStyle}`}>
43-
{
44-
<div styleName="thumbnail">
45-
<div styleName="flag">
46-
{winner.placement}
47-
</div>
48-
{
49-
(viewable && isDesign)
50-
? (
51-
<img
52-
styleName="preview"
53-
alt=""
54-
src={`${config.URL.STUDIO}/studio.jpg`
55-
+ `?module=DownloadSubmission&sbmid=${submissionId}&sbt=small&sfi=1`}
56-
/>
57-
)
58-
: (
59-
<div styleName="lock">
60-
<Lock styleName="lock-icon" />
61-
<div styleName="text">
43+
<div styleName="thumbnail">
44+
<div styleName="flag">
45+
{winner.placement}
46+
</div>
47+
{
48+
(viewable && isDesign)
49+
? (
50+
<img
51+
styleName="preview"
52+
alt=""
53+
src={`${config.URL.STUDIO}/studio.jpg`
54+
+ `?module=DownloadSubmission&sbmid=${submissionId}&sbt=small&sfi=1`}
55+
/>
56+
)
57+
: (
58+
<div styleName="lock">
59+
<Lock styleName="lock-icon" />
60+
<div styleName="text">
6261
LOCKED
63-
</div>
6462
</div>
65-
)
66-
}
67-
</div>
68-
}
63+
</div>
64+
)
65+
}
66+
</div>
6967
<div styleName="info">
7068
<div styleName="avatar-prize">
7169
<Avatar

src/shared/components/examples/Editor/index.jsx

+3-5
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,9 @@ export default function EditorExample() {
1717
connector={connector}
1818
nodeId="editor-toolbar"
1919
/>
20-
{
21-
<Sticky innerZ={1} top="#editor-toolbar">
22-
<Previewer connector={connector} />
23-
</Sticky>
24-
}
20+
<Sticky innerZ={1} top="#editor-toolbar">
21+
<Previewer connector={connector} />
22+
</Sticky>
2523
<div styleName="container">
2624
<div styleName="content">
2725
<h1 styleName="title">

0 commit comments

Comments
 (0)