-
-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
Description
I've found that despite xo working on the command line (and seen it working in other editors) if I introduce a syntax error then I get an ok report from xo in Sublime instead of an error.
Here's a small example:
const { test } = require("./test");
describe("test", () => {
it("bad foo", () => {
foo();
});
it("bad syntax", () => {
await test();
})
});If you run this in a different editor (e.g. Atom) or via the command line it'll complain about line 10 having an await not inside an async function. I'd expect this to highlight as an error.
The result is it looks like the file is ok, however if you add the async back into the function declaration then you see there are actual errors that need fixing.
Reactions are currently unavailable