Skip to content

Commit

Permalink
Disable react/no-danger-with-children
Browse files Browse the repository at this point in the history
  • Loading branch information
btmills committed Aug 15, 2016
1 parent dea5515 commit a75190a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion react.js
Expand Up @@ -45,7 +45,7 @@ module.exports = {
"react/jsx-wrap-multilines": "error",

"react/no-danger": "error",
"react/no-danger-with-children": "error",
"react/no-danger-with-children": "off", // https://github.com/yannickcr/eslint-plugin-react/issues/767
"react/no-deprecated": "error",
"react/no-did-mount-set-state": "error",
"react/no-did-update-set-state": "error",
Expand Down
4 changes: 3 additions & 1 deletion tests/react/react.jsx
Expand Up @@ -3,8 +3,10 @@ import React from 'react'; // eslint-disable-line import/no-extraneous-dependenc
export default class Foo extends React.Component {

render() {
const { name, ...props } = this.props;

return (
<p>Hello, ${this.props.name}!</p>
<p {...props}>Hello, {name}!</p>
);
}

Expand Down

0 comments on commit a75190a

Please sign in to comment.