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

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -