You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I visit a file, src/score_to_grade.spec.js, it shows Prettier in the mode line, but on save, it reformats the file.
I seems that it's ignoring the ignore settings?
Additionally, if I use // prettier-ignore-start ... // prettier-ignore-end these are also not respected and the code between them is formatted in emacs prettier-js-mode.
If I run prettier from my terminal, both of these work as expected.
Versions:
Emacs: GNU Emacs 26.2
prettier-js: 20180109.726
prettier: 1.19.1 (latest)
The text was updated successfully, but these errors were encountered:
// prettier-ignore-{start,end} don't work for me in JS files at least even from the command line. I don't think this features is defined to work for JavaScript. // prettier-ignore does work, though. Therefore, I think there are two separate problems happening here.
The problem with .prettierignore is that internally this mode copies the file into a temporary buffer and then applies prettier to that, so of course the filenames do not match. I'm not quite sure why it would be doing that. Wouldn't it be good enough to just execute prettier in place with the --write option?
I have the following in my emacs init.el:
In a project, I have this for
.prettierignore
:When I visit a file,
src/score_to_grade.spec.js
, it showsPrettier
in the mode line, but on save, it reformats the file.I seems that it's ignoring the ignore settings?
Additionally, if I use
// prettier-ignore-start
...// prettier-ignore-end
these are also not respected and the code between them is formatted in emacs prettier-js-mode.If I run
prettier
from my terminal, both of these work as expected.Versions:
The text was updated successfully, but these errors were encountered: