SublimeJsPrettier icon indicating copy to clipboard operation
SublimeJsPrettier copied to clipboard

Allow for disabling default Prettier options

Open queengooborg opened this issue 3 years ago • 1 comments

Normally when running Prettier, if an option is not specified, it (usually) has no effect. However, because all of the options are predefined in the settings, I end up having formatting applied to projects that shouldn't be applied. I'd love for there to be a way to disable the options defined in Sublime Text settings (say, set prettier_options to null or have an additional parameter) so I don't have to consistently reformat my files in ESLint afterwards.

queengooborg avatar Aug 04 '22 10:08 queengooborg

Hi @queengooborg. Try adding an additional cli arg for --config-precedence, with a value of file-override:

"additional_cli_args": {
  "--config-precedence": "file-override"
}

See if this produces the behavior you're looking for.

jonlabelle avatar Aug 05 '22 00:08 jonlabelle

This issue has been automatically locked due to inactivity. Please open a new issue for related bugs.

github-actions[bot] avatar Feb 04 '23 02:02 github-actions[bot]