From 0cb5c1ec2a0804fc80a9f8d30a7513a0c35295cc Mon Sep 17 00:00:00 2001 From: Anton Golub Date: Sat, 4 May 2024 14:05:07 +0300 Subject: [PATCH] style: linting --- scripts/build-js.mjs | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/build-js.mjs b/scripts/build-js.mjs index 4a7e4292de..02f0245cf5 100644 --- a/scripts/build-js.mjs +++ b/scripts/build-js.mjs @@ -86,7 +86,11 @@ plugins.push( hooks: [ { on: 'end', - pattern: new RegExp('(' + entryPoints.map(e => path.parse(e).name).join('|') + ')\\.cjs$'), + pattern: new RegExp( + '(' + + entryPoints.map((e) => path.parse(e).name).join('|') + + ')\\.cjs$' + ), transform(contents) { return contents .toString() @@ -97,7 +101,10 @@ plugins.push( ) .replaceAll('require("fs/promises")', 'require("fs").promises') .replaceAll('}).prototype', '}).prototype || {}') - .replace(/\/\/ Annotate the CommonJS export names for ESM import in node:/, ($0) => `/* c8 ignore next 100 */\n${$0}`) + .replace( + /\/\/ Annotate the CommonJS export names for ESM import in node:/, + ($0) => `/* c8 ignore next 100 */\n${$0}` + ) }, }, ],