Skip to content

Commit

Permalink
[Lint] Add disable flags for no-danger where needed (elastic#538)
Browse files Browse the repository at this point in the history
  • Loading branch information
tsullivan authored and Rashid Khan committed May 4, 2018
1 parent e7a8b20 commit e73978c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion public/components/update_modal/changes.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
export const Changes = ({ changes }) => {
if (!changes) return null;

return <div dangerouslySetInnerHTML={{ __html: changes }} />;
return <div dangerouslySetInnerHTML={{ __html: changes }} />; // eslint-disable-line react/no-danger
};

Changes.propTypes = {
Expand Down
2 changes: 2 additions & 0 deletions public/render_functions/markdown/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const markdown = () => ({
const html = { __html: md.render(String(config.content)) };
const fontStyle = config.font ? config.font.spec : {};

/* eslint-disable react/no-danger */
ReactDOM.render(
<div
className="canvas__element__markdown"
Expand All @@ -23,6 +24,7 @@ export const markdown = () => ({
domNode,
() => handlers.done()
);
/* eslint-enable */

handlers.onDestroy(() => ReactDOM.unmountComponentAtNode(domNode));
},
Expand Down

0 comments on commit e73978c

Please sign in to comment.