spire-plugin-prettier
v5.0.8
Published
Prettier plugin for Spire
Downloads
158
Keywords
Readme
spire-plugin-prettier
Hooks
setup
Addsformat
command and prepares prettier arguments.precommit
Adds prettier linter.run
Runs prettier.
Options
Plugin
['spire-plugin-prettier', options']
command
<string> Command to run prettier on. Defaults toformat
.prettierConfig
<string> Path to default [prettier] configuration. Defaults to./config.js
.allowCustomConfig
<boolean> Whether to allow user-provided config. If this option isfalse
and there's custom prettier config found it will throw an error. Defaults totrue
.autosetPrettierConfig
<boolean> Whether to automatically set Prettier config inpackage.json
on install or not. Defaults totrue
. Note: this is essential step for eslint-plugin-prettier and IDE integrations. You can also useprettier.config.js
to re-export & modify target config, although not recommended. Preferprettier
prop when possible.prettierIgnore
<string> Path to default.prettierignore
. Defaults to.gitignore
allowCustomIgnore
<boolean> Whether to allow user-provided.prettierignore
. If this option isfalse
and there's custom ignore file found it will throw an error. Defaults totrue
.glob
<string> Default glob of files to write. Defaults to**/*.+(js|json|less|css|ts|tsx|md)
.
CLI
npx spire format [args]
- Passes all arguments as-is to jest.