5.0.8 • Published 1 year ago

spire-plugin-prettier v5.0.8

Weekly downloads
5
License
MIT
Repository
github
Last release
1 year ago

spire-plugin-prettier

Prettier plugin for Spire.

Hooks

  • setup Adds format 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 to format.
    • prettierConfig \<string> Path to default prettier configuration. Defaults to ./config.js.
    • allowCustomConfig \<boolean> Whether to allow user-provided config. If this option is false and there's custom prettier config found it will throw an error. Defaults to true.
    • autosetPrettierConfig \<boolean> Whether to automatically set Prettier config in package.json on install or not. Defaults to true. Note: this is essential step for eslint-plugin-prettier and IDE integrations. You can also use prettier.config.js to re-export & modify target config, although not recommended. Prefer prettier prop when possible.
    • prettierIgnore \<string> Path to default .prettierignore. Defaults to .gitignore
    • allowCustomIgnore \<boolean> Whether to allow user-provided .prettierignore. If this option is false and there's custom ignore file found it will throw an error. Defaults to true.
    • 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.
5.0.5

1 year ago

5.0.8

1 year ago

5.0.4

2 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.0

3 years ago

4.0.1

3 years ago

4.0.0

3 years ago

3.2.2

3 years ago

3.0.2

4 years ago

3.0.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

1.8.4-next.47

4 years ago

2.0.0

4 years ago

1.8.4-next.49

4 years ago

1.8.4-next.42

4 years ago

1.8.4-next.27

4 years ago

1.8.3

4 years ago

1.8.2

4 years ago

1.8.0

4 years ago

1.7.3

5 years ago

1.7.2

5 years ago

1.7.2-next.1

5 years ago

1.7.1

5 years ago

1.4.1

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago