5.0.8 • Published 2 years ago

spire-plugin-prettier v5.0.8

Weekly downloads
5
License
MIT
Repository
github
Last release
2 years 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

2 years ago

5.0.8

2 years ago

5.0.4

3 years ago

5.0.1

3 years ago

5.0.0

3 years ago

4.1.0

4 years ago

4.0.1

4 years ago

4.0.0

4 years ago

3.2.2

4 years ago

3.0.2

4 years ago

3.0.0

4 years ago

2.0.2

5 years ago

2.0.1

5 years ago

1.8.4-next.47

5 years ago

2.0.0

5 years ago

1.8.4-next.49

5 years ago

1.8.4-next.42

5 years ago

1.8.4-next.27

5 years ago

1.8.3

5 years ago

1.8.2

5 years ago

1.8.0

5 years ago

1.7.3

5 years ago

1.7.2

6 years ago

1.7.2-next.1

6 years ago

1.7.1

6 years ago

1.4.1

6 years ago

1.4.0

6 years ago

1.3.0

6 years ago