@trivago/prettier-plugin-sort-imports
Advanced tools
Comparing version 1.4.0 to 1.4.1
@@ -116,3 +116,3 @@ "use strict"; | ||
var code = generator_1.default(newAST).code; | ||
return (code.replace(/"PRETTIER_PLUGIN_SORT_IMPORTS_NEW_LINE";/gi, newLineCharacters) + codeWithoutImportDeclarations); | ||
return (code.replace(/"PRETTIER_PLUGIN_SORT_IMPORTS_NEW_LINE";/gi, newLineCharacters) + codeWithoutImportDeclarations.trim()); | ||
}; | ||
@@ -119,0 +119,0 @@ var getAllCommentsFromNodes = function (nodes) { |
{ | ||
"name": "@trivago/prettier-plugin-sort-imports", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"description": "A prettier plugins to sort imports in provided RegEx order", | ||
@@ -5,0 +5,0 @@ "main": "lib/src/index.js", |
24118