eslint-stats
eslint-stats copied to clipboard
Syntax errors (such as wrong module type) show up as `null`
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
}