spire-plugin-prettier
v5.0.8
Published
Prettier plugin for Spire
Keywords
Readme
spire-plugin-prettier
Hooks
setupAddsformatcommand and prepares prettier arguments.precommitAdds prettier linter.runRuns 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 isfalseand there's custom prettier config found it will throw an error. Defaults totrue.autosetPrettierConfig<boolean> Whether to automatically set Prettier config inpackage.jsonon install or not. Defaults totrue. Note: this is essential step for eslint-plugin-prettier and IDE integrations. You can also useprettier.config.jsto re-export & modify target config, although not recommended. Preferprettierprop when possible.prettierIgnore<string> Path to default.prettierignore. Defaults to.gitignoreallowCustomIgnore<boolean> Whether to allow user-provided.prettierignore. If this option isfalseand 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.
