eslint-stats icon indicating copy to clipboard operation
eslint-stats copied to clipboard

Syntax errors (such as wrong module type) show up as `null`

Open SimenB opened this issue 8 years ago • 0 comments

An object that looks like this shows up as null in the output:

{
  "filePath": "/Users/simbekkh/repos/mfinn/src/main/webapp/modules/controllers/geoWidget.js",
  "messages": [
    {
      "ruleId": null,
      "fatal": true,
      "severity": 2,
      "source": "import SuggestionsDropdown from \"../lib/SuggestionsDropdown.js\";",
      "message": "Parsing error: 'import' and 'export' may appear only with 'sourceType: module'",
      "line": 1,
      "column": 1
    }
  ],
  "errorCount": 1,
  "warningCount": 0
}

SimenB avatar Jun 14 '16 07:06 SimenB