From e81f4a323c20ae8731525dbecff75369df9c0396 Mon Sep 17 00:00:00 2001 From: Debian Javascript Maintainers Date: Thu, 19 May 2022 14:59:03 +0800 Subject: [PATCH] prettier is not packaged, so we will skip it Forwarded: not-needed Reviewed-By: Xavier Guimard Last-Update: 2020-11-28 Gbp-Pq: Name skip-prettier.patch --- scripts/utils/formatCode.js | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/scripts/utils/formatCode.js b/scripts/utils/formatCode.js index 0f140440..d67eae02 100644 --- a/scripts/utils/formatCode.js +++ b/scripts/utils/formatCode.js @@ -9,14 +9,8 @@ if (process.env.CI && parseInt(process.versions.node, 10) < 10) { return code; }; } else { - const prettier = require("prettier"); module.exports = function formatCode(code, filename) { - filename = filename || __filename; - const prettierConfig = prettier.resolveConfig.sync(filename); - prettierConfig.filepath = filename; - prettierConfig.parser = filename.endsWith(".ts") ? "babel-ts" : "babel"; - - return prettier.format(code, prettierConfig); + return code; }; }