Closed baudehlo closed 7 years ago
It breaks (or broke) once you look at JS files in sub-folders - e.g. for outbound split.
On Mon, Mar 20, 2017 at 10:52 AM, Matt Simerson notifications@github.com wrote:
Merged #4 https://github.com/haraka/haraka-eslint/pull/4.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haraka/haraka-eslint/pull/4#event-1006833237, or mute the thread https://github.com/notifications/unsubscribe-auth/AAobY4MYpEig5qMqSrz677rTOGdkwzEdks5rnpLJgaJpZM4Mhmex .
I've got half a mind to just inline that (now very tiny) bit of JSON. I just can't remember if there was any good reason to leave it outside of index.js or not.
I don't even know why it's loaded. It's not used.
On Mon, Mar 20, 2017 at 11:36 AM, Matt Simerson notifications@github.com wrote:
I've got half a mind to just inline that (now very tiny) bit of JSON. I just can't remember if there was any good reason to leave it outside of index.js or not.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/haraka/haraka-eslint/pull/4#issuecomment-287798052, or mute the thread https://github.com/notifications/unsubscribe-auth/AAobY5WtS_nI7a4FZyE78GeRBCBE7owyks5rnp0PgaJpZM4Mhmex .
It might be an anachronism from when all the rules were in that file. That line was probably there to make sure that the JSON file parsed correctly.
That line throws an exception when eslint is executed from a subdirectory (that's what flycheck does in emacs). Wouldn't it be better if we remove it?
Interesting, SublimeLint works fine for me with the relative path.