diff --git a/src/utils.js b/src/utils.js index 05ae475d..66e6ebf6 100644 --- a/src/utils.js +++ b/src/utils.js @@ -199,7 +199,7 @@ function getTrailingComma(value, fallbacks, rules) { if (value === "never") { prettierValue = "none"; - } else if (value === "always") { + } else if (value && value.indexOf("always") === 0) { prettierValue = "es5"; } else if (typeof actualValue === "object") { prettierValue = getValFromTrailingCommaConfig(actualValue);