polygonplanet / sublime-text-eslint

ESLint any JavaScript file in Sublime Text
24 stars 7 forks source link

Line and column not always set on error #14

Closed tsuriga closed 7 years ago

tsuriga commented 7 years ago

Line and column are not always set for errors, e.g. when trying to eslint the .eslintrc.js file.

/Users/tsuriga/Library/Application Support/Sublime Text 3/Packages/ESLint/linter.js:67
        numberWang((error.line + error.column.toString()).length),
                                             ^

TypeError: Cannot read property 'toString' of undefined
    at /Users/tsuriga/Library/Application Support/Sublime Text 3/Packages/ESLint/linter.js:67:46
    ....
[Finished in 0.3s with exit code 1]
[cmd: ['node', '/Users/tsuriga/Library/Application Support/Sublime Text 3/Packages/ESLint/linter.js', '/Users/tsuriga/code/test/.eslintrc.js', '/usr/local/lib/node_modules', '']]
[dir: /Users/tsuriga/code/test]
[path: /usr/local/bin/node]