Ale: Eslint incompatibility with vim-jsx

Created on 12 Oct 2016  路  9Comments  路  Source: dense-analysis/ale

Hey there!

First and foremost, thank you so much for your hard and fast work on this plugin, it's really great.

I've ran into the most peculiar issue with using ale and eslint, where the linter will break only when the vim-jsx plugin is simultaneously included. Thought I'd bring it to attention here, although I've no idea why it might be happening or how to go about tracing stacks etc., to try fix it.

To replicate

  • Include vim-jsx via some plugin manager, along with ale.

Thanks,
J.

bug

All 9 comments

Does it stop working for any JavaScript file, or only some files? What does :set filetype output when you are editing a file which does not report any warnings or errors?

It is probably some issue with filetypes and detection... Take a look at the ftdetect.

Ahh, of course! That's the issue, :set filetype yields javascript.jsx, thanks for the fast response!

Are you on HEAD? The most recent commits have added support for javascript.jsx.

Or not, looks like the code wasn't fully tested.

That's so much both for replies. Please let me know when that support is in, or if there's anyway I can help.

I see the error now. javscript.jsx is no filetype!

@James-Oldfield Try again now. The filetype alias contained a typo.

I'll cover the defaults with tests eventually.

Amazing. Thank you so much. Fixed!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lervag picture lervag  路  3Comments

catbaron0 picture catbaron0  路  3Comments

amerov picture amerov  路  4Comments

ilyakopy picture ilyakopy  路  4Comments

trevordmiller picture trevordmiller  路  4Comments