Index: clang/lib/Format/ContinuationIndenter.cpp =================================================================== --- clang/lib/Format/ContinuationIndenter.cpp +++ clang/lib/Format/ContinuationIndenter.cpp @@ -367,7 +367,10 @@ (!Style.BreakBeforeTernaryOperators && Previous.is(TT_ConditionalExpr))) && State.Stack.back().BreakBeforeParameter && !Current.isTrailingComment() && - !Current.isOneOf(tok::r_paren, tok::r_brace)) + !Current.isOneOf(tok::r_paren, tok::r_brace) && + ((State.Line->Type == LT_ImportStatement && + Style.JavaScriptWrapImports) || + State.Line->Type != LT_ImportStatement)) return true; if (State.Stack.back().IsChainedConditional && ((Style.BreakBeforeTernaryOperators && Current.is(TT_ConditionalExpr) && Index: clang/unittests/Format/FormatTestJS.cpp =================================================================== --- clang/unittests/Format/FormatTestJS.cpp +++ clang/unittests/Format/FormatTestJS.cpp @@ -1975,6 +1975,10 @@ " } from\n" " 'some/path/longer/than/column/limit/module.js' ; ", Style); + Style.ColumnLimit = 0; + Style.JavaScriptWrapImports = false; + verifyFormat("import {aaa, bbb, ccc} from 'abc';", + "import {aaa, bbb, ccc} from 'abc';", Style); } TEST_F(FormatTestJS, TemplateStrings) {