Skip to content

Commit 69f1796

Browse files
authored
Merge pull request #1348 from Arnei/eslint-spaced-comment
Activate eslint spaced-comment
2 parents 16a980b + 185fbf7 commit 69f1796

51 files changed

Lines changed: 138 additions & 139 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eslint.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export default [
1414
"indent": "off",
1515
"max-len": "off",
1616
"no-tabs": "off",
17-
"spaced-comment": "off",
1817
"@typescript-eslint/no-explicit-any": "off",
1918
"@typescript-eslint/no-floating-promises": "off",
2019
"@typescript-eslint/no-misused-promises": "off",

src/components/configuration/partials/wizard/BumperPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ const BumperPage = <T extends RequiredFormProps>({
105105

106106
{/* Show navigation buttons only if page is used for a new theme*/}
107107
{!isEdit && (
108-
//Button for navigation to next page
108+
// Button for navigation to next page
109109
<WizardNavigationButtons
110110
formik={formik}
111111
previousPage={previousPage}

src/components/configuration/partials/wizard/GeneralPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ const GeneralPage = <T, >({
6464

6565
{/* Show navigation buttons only if page is used for a new theme*/}
6666
{!isEdit && (
67-
//Button for navigation to next page
67+
// Button for navigation to next page
6868
<WizardNavigationButtons isFirst formik={formik} nextPage={nextPage} />
6969
)}
7070
</>

src/components/configuration/partials/wizard/TitleSlidePage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ const TitleSlidePage = <T extends RequiredFormProps>({
9292
</div>
9393
</div>
9494
</div>
95-
{/*If title slide mode upload is chosen, use component for file upload */}
95+
{/* If title slide mode upload is chosen, use component for file upload */}
9696
{formik.values.titleSlideMode === "upload" && (
9797
<FileUpload
9898
acceptableTypes="image/*"
@@ -110,7 +110,7 @@ const TitleSlidePage = <T extends RequiredFormProps>({
110110
</ModalContentTable>
111111
{/* Show navigation buttons only if page is used for a new theme*/}
112112
{!isEdit && (
113-
//Button for navigation to next page
113+
// Button for navigation to next page
114114
<WizardNavigationButtons
115115
formik={formik}
116116
previousPage={previousPage}

src/components/configuration/partials/wizard/WatermarkPage.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ const WatermarkPage = <T extends RequiredFormProps>({
8686
</div>
8787
</div>
8888

89-
{/*if file uploaded, then render buttons for choice of position*/}
89+
{/* if file uploaded, then render buttons for choice of position*/}
9090
{formik.values.watermarkFile && (
9191
<div className="obj">
9292
<header>
@@ -167,7 +167,7 @@ const WatermarkPage = <T extends RequiredFormProps>({
167167
</ModalContentTable>
168168
{/* Show navigation buttons only if page is used for a new theme*/}
169169
{!isEdit && (
170-
//Button for navigation to next page
170+
// Button for navigation to next page
171171
<WizardNavigationButtons
172172
formik={formik}
173173
previousPage={previousPage}

src/components/events/Events.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,12 +226,12 @@ const Events = () => {
226226
<h4>{t("TABLE_SUMMARY", { numberOfRows: events })}</h4>
227227
</div>
228228

229-
{/*Include table modal*/}
229+
{/* Include table modal*/}
230230
{displayEventDetailsModal &&
231231
<EventDetailsModal />
232232
}
233233

234-
{/*Include table component*/}
234+
{/* Include table component*/}
235235
{/* <Table templateMap={eventsTemplateMap} resourceType="events" /> */}
236236
<Table templateMap={eventsTemplateMap} />
237237
</MainView>

src/components/events/partials/EventActionCell.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ const EventActionCell = ({
151151
/>
152152
)}
153153

154-
{/*If the event is in in a paused workflow state then a warning icon is shown and workflow tab of event
154+
{/* If the event is in in a paused workflow state then a warning icon is shown and workflow tab of event
155155
details can be opened directly */}
156156
{row.workflow_state === "PAUSED" &&
157157
<IconButton

src/components/events/partials/ModalTabsAndPages/DetailsMetadataTab.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ const DetailsMetadataTab = ({
4242
id: string;
4343
values: { [key: string]: any; };
4444
catalog: MetadataCatalog;
45-
}, any> //(id: string, values: { [key: string]: any }, catalog: MetadataCatalog) => void,
45+
}, any> // (id: string, values: { [key: string]: any }, catalog: MetadataCatalog) => void,
4646
editAccessRole: string,
4747
formikRef?: React.RefObject<FormikProps<InitialValues> | null>
4848
header?: ParseKeys

src/components/events/partials/ModalTabsAndPages/EditScheduledEventsSummaryPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ const EditScheduledEventsSummaryPage = <T extends RequiredFormProps>({
152152
<ModalContent modalContentClassName="modal-content active">
153153
{changes.length > 0 ? (
154154
<div className="full-col">
155-
{/*Repeat for each changed event*/}
155+
{/* Repeat for each changed event*/}
156156
{changes.map((event, key) => (
157157
<div key={key} className="obj tbl-list">
158158
<header>

src/components/events/partials/ModalTabsAndPages/EventDetailsAssetsAddAsset.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ const EventDetailsAssetsAddAsset = ({
111111
)}
112112
</div>
113113
</td>
114-
{/*Button to remove asset*/}
114+
{/* Button to remove asset*/}
115115
<td className="fit">
116116
<ButtonLikeAnchor
117117
className="remove"

0 commit comments

Comments
 (0)