@nx/js:setup-prettier

Setup Prettier as the formatting tool.

Usage

1nx generate setup-prettier ... 2

By default, Nx will search for setup-prettier in the default collection provisioned in workspace.json.

You can specify the collection explicitly as follows:

1nx g @nx/js:setup-prettier ... 2

Show what will be generated without writing to disk:

1nx g setup-prettier ... --dry-run 2

Options

skipFormat

Internal
boolean
Default: false

Skip formatting files.

skipPackageJson

Internal
boolean
Default: false

Do not add dependencies to package.json.