title: NPM and Eslint: This is confusing, is that normal?
body: <p>I am new to JS and I am trying to learn about linting. So, I am following a tutorial where we set the <code>lint</code> stage in the <code>package.json</code> file.</p>
  
  <p>It looks like this: <code>"lint": "./node_modules/.bin/eslint ."</code></p>
  
  <p>So in the terminal, when I run <code>./node_modules/.bin/eslint .</code> it is reporting back all the errors and warnings which is nice, as expected.</p>
  
  <pre><code>/Users/me/dev/webapps/templates/sample_node_project/index.js
    1:1   error    Expected 1 empty line after require statement not followed by another require  import/newline-after-import
    1:35  error    Missing semicolon                                                              semi
    5:27  error    Missing semicolon                                                              semi
    9:3   warning  Unexpected console statement                                                   no-console
    9:53  error    Missing semicolon                                                              semi
  
  ✖ 5 problems (4 errors, 1 warning)
    4 errors and 0 warnings potentially fixable with the `--fix` option.
  </code></pre>
  
  <p>But when I run <code>npm run lint</code>, I am getting this:</p>
  
  <pre><code>/Users/me/dev/webapps/templates/sample_node_project/index.js
    1:1   error    Expected 1 empty line after require statement not followed by another require  import/newline-after-import
    1:35  error    Missing semicolon                                                              semi
    5:27  error    Missing semicolon                                                              semi
    9:3   warning  Unexpected console statement                                                   no-console
    9:53  error    Missing semicolon                                                              semi
  
  ✖ 5 problems (4 errors, 1 warning)
    4 errors and 0 warnings potentially fixable with the `--fix` option.
  
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! sample_node_project@1.0.0 lint: `eslint .`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the sample_node_project@1.0.0 lint script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     /Users/me/.npm/_logs/2018-10-25T23_15_56_180Z-debug.log
  </code></pre>
  
  <p>So this throws an extra block of errors, which made me think that my <code>node</code> and <code>npm</code> is corrupt. Also, in the tutorial, the instructor is running <code>yarn lint</code> and he seems to be getting a lot less of that additional error block.</p>
  
  <p>Is that normal?</p>