@dotcom-tool-kit/prettier
v5.0.1
Published
Tool Kit plugin to format your source code with [Prettier](https://prettier.io).
Readme
@dotcom-tool-kit/prettier
Tool Kit plugin to format your source code with Prettier.
Installation
Install @dotcom-tool-kit/prettier as a devDependency in your app:
npm install --save-dev @dotcom-tool-kit/prettierAdd the plugin to your Tool Kit configuration:
plugins:
- '@dotcom-tool-kit/prettier'Tasks
Prettier
Format files with prettier.
Task options
| Property | Description | Type | Default |
| :----------- | :---------------------------------------------------------------------------------------------------------------------------------------------- | :------------------------ | :------------------------- |
| files | glob pattern of files to run Prettier on. | Array<string> \| string | ["**/*.{js,jsx,ts,tsx}"] |
| configFile | path to a Prettier config file to use. Uses Prettier's built-in config resolution by default. | string | |
| ignoreFile | path to a Prettier ignore file. | string | '.prettierignore' |
All properties are optional.
