Closed YievCkim closed 3 years ago
This is a long standing bug on js2-mode. If you have the time, you can dig into the parser to fix it.
As an aside, I'd thought tree-sitter will be able to highlight this, but apparently it does not.
Ok thank you. I will try to see that but I am not expert with Elisp. I have started to follow the issue on js2mode-repo too.
This has been fixed in js2-mode.
that's a very good news. Thanks !
Hi,
I am working on a project which follows airbnb coding style.
This coding style allow coma-dangle, and the project refuse to build if this rule is broken.
Conversally, in emacs in RJSX-mode, I get an error from the linter about this and this has an impact on syntax highlighting.
By instance:
This fails to build but raise no warning from rjsx linter:
Instead this build without issue but raise en error in emacs:
In this last case the arrow appears red and display this error: "missing formal parameter".
I have tried to workaround with this in js2-mode settings but didn't find nothing.
How can I do to get a good syntax highlighting on this project from emacs ?