eemeli/prettier-plugin-properties

Prettier plugin for .properties files

22

stars

37

commits

JavaScript

primary language

Mar 25, 2026

updated

README

Prettier for .properties Files

Adds 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.

Configuration

In addition to the default options, two additional options are available:

Escape Non-Latin-1 Characters

Escape with \u all non-Latin-1 characters, to allow safely encoding output as ISO-8859-1.

DefaultCLI OverrideAPI Override
false--escape-non-latin1escapeNonLatin1: <bool>

Key Separator

Set the separator to use between a property key and its value.

Valid options:
" " | ":" | "=" | ": " | "= " | " : " | " = "

DefaultCLI OverrideAPI Override
" = "--key-separator "<sep>"keySeparator: "<sep>"

Using Overrides

To apply separate Prettier configuration for different file types, you may use configuration overrides. For example:

{
  "overrides": [
    {
      "files": "*.properties",
      "options": {
        "printWidth": 0
      }
    }
  ]
}

Contributors

eemeli

34 commits

JounQin

1 commits

nbouvrette

1 commits

tylervz

1 commits

eemeli/prettier-plugin-properties

Prettier plugin for .properties files

22

stars

37

commits

JavaScript

primary language

Mar 25, 2026

updated

README

Prettier for .properties Files

Adds 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.

Configuration

In addition to the default options, two additional options are available:

Escape Non-Latin-1 Characters

Escape with \u all non-Latin-1 characters, to allow safely encoding output as ISO-8859-1.

DefaultCLI OverrideAPI Override
false--escape-non-latin1escapeNonLatin1: <bool>

Key Separator

Set the separator to use between a property key and its value.

Valid options:
" " | ":" | "=" | ": " | "= " | " : " | " = "

DefaultCLI OverrideAPI Override
" = "--key-separator "<sep>"keySeparator: "<sep>"

Using Overrides

To apply separate Prettier configuration for different file types, you may use configuration overrides. For example:

{
  "overrides": [
    {
      "files": "*.properties",
      "options": {
        "printWidth": 0
      }
    }
  ]
}

Contributors

eemeli

34 commits

JounQin

1 commits

nbouvrette

1 commits

tylervz

1 commits

Languages

JavaScript

100.0%