title: Eslint not ignoring node_modules folder
body: <p>Somehow after updating <code>Babel</code> from <code>6</code> to <code>7</code> my <code>eslint</code> started giving such a warning in <code>node_modules</code>:</p>
  
  <p><a href="https://i.stack.imgur.com/Bakyi.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Bakyi.png" alt="enter image description here"></a></p>
  
  <p>So, from my understanding <code>node_modules</code> folder is not ignored and that is why the issue popped up. So, reading through <code>eslint</code> docs:</p>
  
  <p><a href="https://eslint.org/docs/user-guide/configuring" rel="noreferrer">https://eslint.org/docs/user-guide/configuring</a></p>
  
  <p>I tried adding <code>"ignorePatterns": ["node_modules/"],</code> to the <code>.eslintrc</code> file but got an error:</p>
  
  <blockquote>
    <p>Module build failed: Error: ESLint configuration in /Users/vlasenkona/Desktop/gris-seqr2/ui/.eslintrc is invalid:
        - Unexpected top-level property "ignorePatterns".</p>
  </blockquote>
  
  <p>So, I tried creating <code>.eslintignore</code> file and added there just <code>node_modules/</code> but the warning stayed the same. How could I ignore the <code>node_modules</code> folder? The versions of the packages I am using:</p>
  
  <pre><code>"eslint": "^5.16.0",
  "babel-eslint": "^9.0.0",
  "eslint-config-airbnb": "^16.1.0",
  "eslint-import-resolver-babel-module": "^5.1.2",
  "eslint-loader": "1.9.0",
  "eslint-plugin-flowtype": "2.39.1",
  "eslint-plugin-import": "^2.20.1",
  "eslint-plugin-jsx-a11y": "^6.1.0",
  "eslint-plugin-react": "^7.10.0",
  "eslint-plugin-react-perf": "^2.0.8",
  </code></pre>
  
  <p>The <code>.eslintrc</code> looks like that:</p>
  
  <pre><code>{
    "extends": [
      "airbnb",
      "plugin:react-perf/recommended"
    ],  
    "parser": "babel-eslint",
    "parserOptions": {
      "ecmaFeatures": {
        "experimentalObjectRestSpread": true
      }   
    },  
    "env": {
      "mocha": true,
      "es6": true,
      "browser": true,
      "node": true,
      "jest": true
    },  
    "settings": {
      "import/resolver": {
        "babel-module": {}
      }   
    },  
    "rules": {
      "semi": [2, "never"],
      "no-shadow": ["error", { "allow": ["error"] }], 
      "arrow-body-style": 0,
      "func-names": 0,
      "function-paren-newline": 0,
      "max-len": 0, //["warn", 80, 2], 
      "no-console": 0,
      "no-multi-str": 0,
      "no-param-reassign": 0,
      "no-plusplus": 0,
      "brace-style": 0,
      "object-curly-newline": 0,
      "padded-blocks": 0,
      "react/jsx-first-prop-new-line": 0,
      "react/jsx-wrap-multilines": 0,
      "react/prefer-stateless-function": 0,
      "react/sort-comp": 0,  // more freedom in arranging class functions
      "import/prefer-default-export": 0,
      "react/forbid-prop-types": 0,
      "no-class-assign": 0,
      "react/jsx-filename-extension": [ 1, { "extensions": [".js", ".jsx"]} ],
      "react/require-default-props": 0,
      "react/require-optimization": 2,
      "react/jsx-max-props-per-line": 0,
      "react/jsx-no-target-blank": 0,
      "spaced-comment": 0,
  
      "jsx-a11y/iframe-has-title": 0,
      "jsx-a11y/tabindex-no-positive": 0,
      "jsx-a11y/click-events-have-key-events": 0,
      "jsx-a11y/anchor-is-valid": 0
    }
  }
  </code></pre>
  
  <blockquote>
    <p>Update</p>
  </blockquote>
  
  <p>I tried adding the following to newly created <code>.eslintignore</code>:</p>
  
  <pre><code>node_modules/*
  ./node_modules/**
  **/node_modules/**
  </code></pre>
  
  <p>But neither works. Interestingly enough, if I open <code>./node_modules/draftjs-md-converter/dist/index.js</code> and put at the very beginning and end of the file <code>/*eslint-disable */</code> the warning still remains, so maybe it is not an <code>eslint</code> problem: just totally misleading warning?..</p>