title: How to configure eslint with nodejs express application
body: <p>js application. I need to use eslint for this application. I am using <a href="https://www.npmjs.com/package/eslint-config-airbnb" rel="noreferrer">https://www.npmjs.com/package/eslint-config-airbnb</a> and using prettier plugin in VS Code editor.</p>
  
  <p>.eslintrc</p>
  
  <pre><code>{
    "extends": "airbnb"
  }
  </code></pre>
  
  <p>I see that VS Code is giving me lot of errors in complete project now after adding eslint plugin <a href="https://marketplace.visualstudio.comitems?itemName=dbaeumer.vscode-eslint" rel="noreferrer">https://marketplace.visualstudio.comitems?itemName=dbaeumer.vscode-eslint</a> and npm package.</p>
  
  <p>Few errors</p>
  
  <pre><code>[eslint] Definition for rule 'jsx-a11y/href-no-hash' was not found (jsx-a11y/href-no-hash)
  [eslint] Expected linebreaks to be 'LF' but found 'CRLF'. (linebreak-style)
  [eslint] Unexpected unnamed function. (func-names)
  [eslint] Missing space before function parentheses. (space-before-function-paren)
  [eslint] Strings must use singlequote. (quotes)
  [eslint] Unexpected function expression. (prefer-arrow-callback)
  [eslint] Unexpected unnamed function 'bind'. (func-names)
  [eslint] Missing space before function parentheses. (space-before-function-paren)
  </code></pre>
  
  <p>package.json</p>
  
  <pre><code>  "devDependencies": {
      "babel": "^6.23.0",
      "babel-cli": "^6.5.1",
      "babel-core": "^6.9.0",
      "babel-eslint": "^7.2.3",
      "babel-preset-es2015": "^6.5.0",
      "babel-preset-stage-0": "6.5.0",
      "eslint": "^3.19.0",
      "eslint-config-airbnb": "^15.1.0",
      "eslint-plugin-import": "^2.7.0",
      "eslint-plugin-jsx-a11y": "^6.0.2",
      "eslint-plugin-react": "^7.4.0",
      "nodemon": "^1.12.1"
    }
  </code></pre>
  
  <p>index.js</p>
  
  <pre><code>import request from "superagent";
  
  module.exports = function(req, res, next) {
    const id = "abc";
  
    request
      .post(url)
      .send(`p1=v1`)
      .send(`p2=v2`)
      .end(function(error, response) {}.bind(this));
    next();
  };
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/kEfAz.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kEfAz.png" alt="enter image description here"></a></p>
  
  <p>Same kind of errors in each JS files. Does anyone know how to resolve these ?</p>