Как отключить правило реакции / проп-типов ESLint в файле?
Я использую React и ESLint с eslint-plugin-реагировать. Я хочу отключить правило проп-типов в одном файле.
var React = require('react');
var Model = require('./ComponentModel');
var Component = React.createClass({
/* eslint-disable react/prop-types */
propTypes: Model.propTypes,
/* eslint-enable react/prop-types */
render: function () {
return (
<div className="component">
{this.props.title}
</div>
);
}
});