title: React eslint error missing in props validation
body: <p>I have the next code, eslint throw:</p>
  <blockquote>
  <p>react/prop-types onClickOut; is missing in props validation</p>
  <p>react/prop-types children; is missing in props validation</p>
  </blockquote>
  <p><code>propTypes</code> was defined but eslint does not recognize it.</p>
  <pre><code>import React, { Component, PropTypes } from 'react';
  
  class IxClickOut extends Component {
    static propTypes = {
      children: PropTypes.any,
      onClickOut: PropTypes.func,
    };
  
   componentDidMount() {
      document.getElementById('app')
        .addEventListener('click', this.handleClick);
    }
  
    componentWillUnmount() {
      document.getElementById('app')
        .removeEventListener('click', this.handleClick);
    }
  
    handleClick = ({ target }: { target: EventTarget }) =&gt; {
      if (!this.containerRef.contains(target)) {
        this.props.onClickOut();
      }
    };
  
    containerRef: HTMLElement;
  
    render() {
      const { children, ...rest } = this.props;
      const filteredProps = _.omit(rest, 'onClickOut');
  
      return (
        &lt;div
          {...filteredProps}
          ref={container =&gt; {
            this.containerRef = container;
          }}
        &gt;
          {children}
        &lt;/div&gt;
      );
    }
  }
  
  export default IxClickOut;
  </code></pre>
  <p>package.json</p>
  <pre><code>{
    &quot;name&quot;: &quot;verinmueblesmeteor&quot;,
    &quot;private&quot;: true,
    &quot;scripts&quot;: {
      &quot;start&quot;: &quot;meteor run&quot;,
      &quot;ios&quot;: &quot;NODE_ENV=developement meteor run ios&quot;
    },
    &quot;dependencies&quot;: {
      &quot;fine-uploader&quot;: &quot;^5.10.1&quot;,
      &quot;foundation-sites&quot;: &quot;^6.2.3&quot;,
      &quot;install&quot;: &quot;^0.8.1&quot;,
      &quot;ix-gm-polygon&quot;: &quot;^1.0.11&quot;,
      &quot;ix-type-building&quot;: &quot;^1.4.4&quot;,
      &quot;ix-type-offer&quot;: &quot;^1.0.10&quot;,
      &quot;ix-utils&quot;: &quot;^1.3.7&quot;,
      &quot;keymirror&quot;: &quot;^0.1.1&quot;,
      &quot;meteor-node-stubs&quot;: &quot;^0.2.3&quot;,
      &quot;moment&quot;: &quot;^2.13.0&quot;,
      &quot;npm&quot;: &quot;^3.10.3&quot;,
      &quot;rc-slider&quot;: &quot;^3.7.3&quot;,
      &quot;react&quot;: &quot;^15.1.0&quot;,
      &quot;react-addons-pure-render-mixin&quot;: &quot;^15.1.0&quot;,
      &quot;react-dom&quot;: &quot;^15.1.0&quot;,
      &quot;react-fileupload&quot;: &quot;^2.2.0&quot;,
      &quot;react-list&quot;: &quot;^0.7.18&quot;,
      &quot;react-modal&quot;: &quot;^1.4.0&quot;,
      &quot;react-redux&quot;: &quot;^4.4.5&quot;,
      &quot;react-router&quot;: &quot;^2.6.0&quot;,
      &quot;react-styleable&quot;: &quot;^2.2.4&quot;,
      &quot;react-textarea-autosize&quot;: &quot;^4.0.4&quot;,
      &quot;redux&quot;: &quot;^3.5.2&quot;,
      &quot;redux-form&quot;: &quot;^5.3.1&quot;,
      &quot;redux-thunk&quot;: &quot;^2.1.0&quot;,
      &quot;rxjs&quot;: &quot;^5.0.0-beta.9&quot;,
      &quot;rxjs-es&quot;: &quot;^5.0.0-beta.9&quot;,
      &quot;socket.io&quot;: &quot;^1.4.8&quot;
    },
    &quot;devDependencies&quot;: {
      &quot;autoprefixer&quot;: &quot;^6.3.6&quot;,
      &quot;babel-eslint&quot;: &quot;^6.0.4&quot;,
      &quot;babel-plugin-transform-decorators-legacy&quot;: &quot;^1.3.4&quot;,
      &quot;babel-preset-es2015&quot;: &quot;^6.9.0&quot;,
      &quot;babel-preset-react&quot;: &quot;^6.5.0&quot;,
      &quot;babel-preset-stage-0&quot;: &quot;^6.5.0&quot;,
      &quot;core-js&quot;: &quot;^2.0.0&quot;,
      &quot;cssnano&quot;: &quot;^3.7.1&quot;,
      &quot;eslint&quot;: &quot;^2.12.0&quot;,
      &quot;eslint-config-airbnb&quot;: &quot;^9.0.1&quot;,
      &quot;eslint-import-resolver-meteor&quot;: &quot;^0.2.3&quot;,
      &quot;eslint-plugin-import&quot;: &quot;^1.8.1&quot;,
      &quot;eslint-plugin-jsx-a11y&quot;: &quot;^1.2.2&quot;,
      &quot;eslint-plugin-react&quot;: &quot;^5.1.1&quot;,
      &quot;node-sass&quot;: &quot;^3.8.0&quot;,
      &quot;postcss-cssnext&quot;: &quot;^2.6.0&quot;,
      &quot;sasslets-animate&quot;: &quot;0.0.4&quot;
    },
    &quot;cssModules&quot;: {
      &quot;ignorePaths&quot;: [
        &quot;node_modules&quot;
      ],
      &quot;jsClassNamingConvention&quot;: {
        &quot;camelCase&quot;: true
      },
      &quot;extensions&quot;: [
        &quot;scss&quot;,
        &quot;sass&quot;
      ],
      &quot;postcssPlugins&quot;: {
        &quot;postcss-modules-values&quot;: {},
        &quot;postcss-modules-local-by-default&quot;: {},
        &quot;postcss-modules-extract-imports&quot;: {},
        &quot;postcss-modules-scope&quot;: {},
        &quot;autoprefixer&quot;: {}
      }
    }
  }
  </code></pre>
  <p>.babelrc</p>
  <pre><code>{
    &quot;presets&quot;: [
      &quot;es2015&quot;,
      &quot;react&quot;,
      &quot;stage-0&quot;
    ],
    &quot;whitelist&quot;: [
        &quot;es7.decorators&quot;,
        &quot;es7.classProperties&quot;,
        &quot;es7.exportExtensions&quot;,
        &quot;es7.comprehensions&quot;,
        &quot;es6.modules&quot;
    ],
    &quot;plugins&quot;: [&quot;transform-decorators-legacy&quot;]
  }
  </code></pre>
  <p>.eslintrc</p>
  <pre><code>{
    &quot;parser&quot;: &quot;babel-eslint&quot;,
    &quot;extends&quot;: &quot;airbnb&quot;,
    &quot;rules&quot;: {
      &quot;no-underscore-dangle&quot;: [&quot;error&quot;, { &quot;allow&quot;: [_id, b_codes_id] }],
    },
    &quot;settings&quot;: {
      &quot;import/resolver&quot;: &quot;meteor&quot;
    },
    &quot;globals&quot;: {
      &quot;_&quot;: true,
      &quot;CSSModule&quot;: true,
      &quot;Streamy&quot;: true,
      &quot;ReactClass&quot;: true,
      &quot;SyntheticKeyboardEvent&quot;: true,
    }
  }
  </code></pre>