reactjs - How to disable ESLint react/prop-types rule in a file? -


i'm using react , eslint eslint-plugin-react. want disable prop-types rule in 1 file.

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>         );     } }); 

just put on top of file:

/* eslint react/prop-types: 0 */ 

Comments

Popular posts from this blog

gcc - MinGW's ld cannot perform PE operations on non PE output file -

timeout - Handshake_timeout on RabbitMQ using python and pika from remote vm -

c# - Search and Add Comment with OpenXML for Word -