Prettier plugin for .properties files
npm install prettier-plugin-propertiesAdds support to Prettier (v2.3 and later) for .properties files.
To use, install it:
```
npm install --save-dev prettier-plugin-properties
and then add it to your Prettier plugin configuration.
In addition to the default options, two additional options are available:
Escape with \u all non-Latin-1 characters, to allow safely encoding output as ISO-8859-1.
| Default | CLI Override | API Override |
| ------- | --------------------- | ------------------------- |
| false | --escape-non-latin1 | escapeNonLatin1: |
Set the separator to use between a property key and its value.
Valid options:
" " | ":" | "=" | ": " | "= " | " : " | " = "
| Default | CLI Override | API Override |
| ------- | ------------------------- | ----------------------- |
| " = " | --key-separator " | keySeparator: " |
To apply separate Prettier configuration for different file types,
you may use configuration overrides.
For example:
`json``
{
"overrides": [
{
"files": "*.properties",
"options": {
"printWidth": 0
}
}
]
}