diff --git a/packages/prettier-plugin-java/src/options.js b/packages/prettier-plugin-java/src/options.js
index 79100075..ce87489e 100644
--- a/packages/prettier-plugin-java/src/options.js
+++ b/packages/prettier-plugin-java/src/options.js
@@ -249,7 +249,7 @@ export default {
type: "choice",
category: "Java",
default: "all",
- choices: ["all", "none"],
+ choices: ["all", "es5", "none"],
description: "Print trailing commas wherever possible when multi-line."
}
};
diff --git a/website/src/pages/playground/index.tsx b/website/src/pages/playground/index.tsx
index e2d5a9a8..8fc25764 100644
--- a/website/src/pages/playground/index.tsx
+++ b/website/src/pages/playground/index.tsx
@@ -17,8 +17,9 @@ interface State {
}
enum TrailingComma {
- None = "none",
- All = "all"
+ All = "all",
+ Es5 = "es5",
+ None = "none"
}
const codeSample = `public interface MyInterface {
@@ -144,8 +145,9 @@ function Inner() {
setTrailingComma(event.target.value as TrailingComma)
}
>
-
-
+ {Object.values(TrailingComma).map(option => (
+
+ ))}