jscheid / prettier.el

Prettier code formatting for Emacs.
GNU General Public License v3.0
168 stars 12 forks source link

Add meriyah, espree, and babel-ts parsers #54

Closed jscheid closed 3 years ago

jscheid commented 3 years ago

@asbish that's because we control the parser ourselves based on the major mode... but I consider your case a bug, when you set the parser explicitly in the config we should honor that setting. Good catch. I'll open an issue for it.

As a workaround, you can (setq-local prettier-parsers '(meriyah)) (maybe in file-local variables, or dir-local.el, or js-mode-hook). Or you can disable babel in prettier-enabled-parsers, which will make it try meriyah next.