From d85f09cbed5f3d2501f791e689011ae127df1cbb Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 9 Jan 2022 20:33:53 +0100 Subject: build: Add prettier MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit eslint will also enforce prettier rules, so there is no need to call prettier separately in CI. Signed-off-by: Kristóf Marussy --- config/buildConstants.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'config/buildConstants.js') diff --git a/config/buildConstants.js b/config/buildConstants.js index 9083d78..3c55500 100644 --- a/config/buildConstants.js +++ b/config/buildConstants.js @@ -7,11 +7,15 @@ const thisDir = fileURLToDirname(import.meta.url); // We import this from a vite config, where top-level await is not available (es2021), // so we have to use the synchronous filesystem API. -const electronVendorsJson = readFileSync(join(thisDir, '../.electron-vendors.cache.json'), 'utf8'); +const electronVendorsJson = readFileSync( + join(thisDir, '../.electron-vendors.cache.json'), + 'utf8', +); /** @type {{ chrome: number; node: number; }} */ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment -const { chrome: chromeVersion, node: nodeVersion } = JSON.parse(electronVendorsJson); +const { chrome: chromeVersion, node: nodeVersion } = + JSON.parse(electronVendorsJson); /** @type {string} */ export const banner = `/*! -- cgit v1.2.3-54-g00ecf