Task Definitions: None
Template Definitions: 'prettier'
Batcher Definitions: None
Applies Prettier to the current project, rewriting the project files. Caching is handled by Prettier (--cache --cache-strategy metadata
).
auto-install
(Boolean, default:true
): Whether to automatically installprettier
if not present (using the npm extension). The global npm extensionauto-install
option will take precedence here if not otherwise set.check
(Boolean, default:false
): Whether to run a Prettier check run.config
(String): Custom Prettier configuration.files
(String): Files to apply Prettier to. Defaults to all project files.ignorePath
(String): Path to .prettierignore (or otherwise named) file.loglevel
(String): "debug", "error", "log" (default), "silent" or "warnno-error-on-unmatched-pattern
(Boolean, default:false
): Disable errors for unmatches patterns in thefiles
string provided.write
(Boolean, default:true
): Whether to write the updated source files.
chompfile.toml
version = 0.1
extensions = ['[email protected]:prettier']
[[task]]
name = 'prettier'
template = 'prettier'
deps = ['src/**/*', 'docs/**/*.md']
[task.template-options]
ignore-path = '.prettierignore'
files = 'src/**/*.@(js|json|yml) docs/**/*.md'
loglevel = 'warn'
config = '.prettierrc'
When ejecting the template, only the Prettier compilation CLI command will be ejected, without auto installation.