How do I pass CLI or API options to prettier when running ALEFix? #4136
-
I have set up Prettier as the ALE fixer for HTML files as follows:
In Prettier, I would like to set the "Bracket Line" option as
This did not work, so I followed the second advice on https://prettier.io/docs/en/vim.html and added the option to my .vimrc:
This failed, too. How can I provide options to the Prettier fixer so that it works with ALEFix? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The prettier fixer uses this configuration |
Beta Was this translation helpful? Give feedback.
The prettier fixer uses this configuration
g:ale_javascript_prettier_options
. This is used by the fixer for all languages it supports (e.g. javascript, html, etc.)