Closed tjmehta closed 7 years ago
Hey @tjmehta, thanks for the PR I will review shortly and get back at you. Thanks
Let me know if you have any questions :)
I have fixed this in https://github.com/ricardofbarros/linter-js-standard/commit/3c9ad13f88853f2f804e9c2f76de011871eb3e60.
Instead of simply returning early, I have decided to use the path returned by TextEditor::getPath()
. This allows us to honor the style settings specified in package.json
even if the file does not exist in the file system (anymore).
Nevertheless, thank you, @tjmehta and @jscissr, for pointing us to the source of the error 👍
Open files in atom can be moved or deleted. When nonexistant files are listed,
checkStyleSettings
to returnsundefined
which causes #168. For now, I returned an empty object even whencheckStyleSettings
swallows any file read error.