I\'m using React and ESLint with eslint-plugin-react.
I want to disable the prop-types rule in one f
I had to wrap the whole component with the eslint ignore comments.
var React = require('react');
var Model = require('./ComponentModel');
/* eslint-disable react/prop-types */
var Component = React.createClass({
propTypes: Model.propTypes,
render: function () {
return (
{this.props.title}
);
}
});
/* eslint-enable react/prop-types */