Skip to content

Commit 33c2e92

Browse files
committed
comments_async: fix some linting errors after the update of eslint
1 parent 95e5a22 commit 33c2e92

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

adhocracy4/comments_async/static/comments_async/comment.jsx

+12-8
Original file line numberDiff line numberDiff line change
@@ -207,20 +207,24 @@ export default class Comment extends React.Component {
207207
comment = (
208208
<div className={'a4-comments__text' + (this.state.anchored ? ' a4-comments__text--highlighted' : '')}>
209209
{this.props.is_moderator_marked
210-
? <mark>
210+
? (
211+
<mark>
212+
<ReactMarkdown
213+
disallowedElements={['h1', 'h2', 'h3', 'h4', 'input', 'table', 'thead', 'tr', 'th']}
214+
unwrapDisallowed
215+
>
216+
{content}
217+
</ReactMarkdown>
218+
</mark>
219+
)
220+
: (
211221
<ReactMarkdown
212222
disallowedElements={['h1', 'h2', 'h3', 'h4', 'input', 'table', 'thead', 'tr', 'th']}
213223
unwrapDisallowed
214224
>
215225
{content}
216226
</ReactMarkdown>
217-
</mark>// eslint-disable-line react/jsx-closing-tag-location
218-
: <ReactMarkdown
219-
disallowedElements={['h1', 'h2', 'h3', 'h4', 'input', 'table', 'thead', 'tr', 'th']}
220-
unwrapDisallowed
221-
>
222-
{content}
223-
</ReactMarkdown>/* eslint-disable-line react/jsx-closing-tag-location */}
227+
)}
224228
</div>
225229
)
226230
}

adhocracy4/comments_async/static/comments_async/filter_category.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,6 @@ export const FilterCategory = ({
4040
})}
4141
</div>
4242
</div>
43-
</div> // eslint-disable-line react/jsx-closing-tag-location
43+
</div>
4444
)
4545
}

0 commit comments

Comments
 (0)