A zero config plugin for running Prettier in Atom. It was inspired by @t9md's mprettier but changed to suit my needs.
It will always run Prettier on the current file even if the file is ignored in
miniprettier will follow this order to find the Prettier version to use:
miniprettier can't find Prettier in the current project, it will use options set in
miniprettier:options:singleQuote: trueprintWidth: 100trailingComma: "all"
(see Prettier's available options)
Prettier will use the project's own configuration (via
prettier.resolveConfig). If the project doesn't have any options set, it probably means the project uses Prettier's default and
miniprettier will not pass any options.
miniprettier doesn't try to guess which
parser to use or anything, it relies on Prettier's own inference based on the file extension.
Thanks to @t9md for inspiration in mprettier.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.