.PRETTIERRC File Extension
Prettier Configuration File
Developer | Prettier |
Popularity |
3.0 | 2 Votes |
What is a PRETTIERRC file?
A PRETTIERRC file is a configuration file used by Prettier, an automated code formatting tool. It contains JSON- or YAML-formatted text that specifies a user's Prettier settings. You can open a PRETTIERRC file in any text or source code editor.
More Information
Prettier is a code formatting tool that developers can use to automatically format their code using preset guidelines. Some of these guidelines can be adjusted using Prettier configuration files. For example, a developer can use a configuration file to set whether formatted code will include single quotes or double quotes, or whether the code will include a semicolon at the end of every statement.
Some Prettier configuration files are saved as PRETTIERRC files. These files contain a list of a user's Prettier settings, formatted using JSON or YAML. Other Prettier configuration files may contain JavaScript- or TOML-formatted lists of settings.
NOTE: PRETTIERRC files may also contain settings overrides, used to override a setting when formatting code saved in certain folders or files.
How to open a PRETTIERRC file
You can open and edit a PRETTIERRC file in any text or source code editor, such as Microsoft Visual Studio Code (cross-platform) or GitHub Atom (cross-platform).
How do I use a PRETTIERRC file with Prettier?
To learn how to use a PRETTIERRC file with Prettier, refer to the configuration instructions found here.