title: How do I validate .eslintrc.json files?
body: <p>I'm running ESLint through the WebStorm editor. I apparently have an unexpected token in my <code>.eslintrc.json</code> file. However, WebStorm merely tells me that I have an unexpected token - not where it is.</p>
  
  <p>How do I validate my <code>.eslintrc.json</code> file in a way that will reveal the line and column of the unexpected token?</p>
  
  <p>This is my <code>.eslintrc.json</code> file (while you are welcome to tell me what's wrong, I would also like to learn how to validate it on my own):</p>
  
  <pre><code>{
    "parserOptions": {
      "ecmaVersion": 8,
      "sourceType": "script"
    },
    "rules": {
      "semi": ["error", "always"],
      "linebreak-style": ["error", "unix"]
    },
    "env": {
      "browser": true
    }
  }
  </code></pre>
  
  <p>EDIT:</p>
  
  <p>@Wayrex suggested that I rename the file to <code>.eslintrc</code>.
  Having done so, I still get the error. This is a screenshot of the error:</p>
  
  <p><a href="https://i.stack.imgur.com/Ok8kF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ok8kF.png" alt="WebStorm complains about my .eslintrc file"></a></p>
  
  <p>EDIT 2:</p>
  
  <p>I asked JetBrains about their opinion, and they think the error message stems from ESLint having trouble parsing my source code, not my config file:</p>
  
  <p><a href="https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000094600--eslintrc-json-has-unexpected-token-" rel="noreferrer">https://intellij-support.jetbrains.com/hc/en-us/community/posts/360000094600--eslintrc-json-has-unexpected-token-</a></p>
  
  <p>My ESLint is version 3.6.0</p>