Format the source code with Prettier.
| Function |
Description |
| format |
Format the source code with Prettier. Prettier finds the project’s own configuration itself. Only a project with none gets --config, pointing at FormatOptions.defaultConfigFilePath or at the shared configuration. .gitignore and .prettierignore are honored, as Prettier always does. |
| getPrettierConfig |
Reads the shared Prettier configuration this package ships, for a project’s own prettier.config.mjs to export or build on. |
| hasPrettierConfig |
Says whether the project configures Prettier itself. |
| Variable |
Description |
| PRETTIER_CONFIG_FILE_NAMES |
Every file Prettier reads its configuration from, besides the prettier key of package.json. |