js2-mode icon indicating copy to clipboard operation
js2-mode copied to clipboard

Support for external linters?

Open Trevoke opened this issue 9 years ago • 5 comments

Hello!

Thank you for js2-mode. It's quite an accomplishment and it makes Javascript almost bearable :)

In this new wave of Javascript, we don't care about proper Javascript anymore, we care about what external linters say, such as eslint. How would this work, here? Would we extend js2-mode to support that.. Or would I somehow cobble together something using flycheck.. or something else?

Trevoke avatar Apr 29 '16 19:04 Trevoke

What do you mean by "support" here? Flycheck supports ESLint, etc, already.

dgutov avatar Apr 29 '16 19:04 dgutov

js2-mode has options to support optional trailing commas, etc. Do I have to actively turn those off if I want to leverage flycheck to give me warnings?

Trevoke avatar Apr 30 '16 15:04 Trevoke

I suppose so. Is that a problem?

dgutov avatar Apr 30 '16 15:04 dgutov

I guess not; I just thought, since it's called "js-ide", that I could expect the world from it :)

Trevoke avatar May 09 '16 13:05 Trevoke

Personaly, I use eslint : https://melpa.org/#/eslint-fix , for me it should not be in js2-mode

thomas-louvigne avatar Oct 31 '18 14:10 thomas-louvigne