From fb7118ff1c8f0dcd61f15e51b193512283d83fa1 Mon Sep 17 00:00:00 2001 From: Kristóf Marussy Date: Sun, 9 Jan 2022 22:16:29 +0100 Subject: build: Add eslint-plugin-unicorn MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Kristóf Marussy --- config/buildConstants.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'config/buildConstants.js') diff --git a/config/buildConstants.js b/config/buildConstants.js index 3c55500..dfe2ab0 100644 --- a/config/buildConstants.js +++ b/config/buildConstants.js @@ -1,14 +1,14 @@ -import { readFileSync } from 'fs'; -import { join } from 'path'; +import { readFileSync } from 'node:fs'; +import path from 'node:path'; -import fileURLToDirname from './fileURLToDirname.js'; +import fileUrlToDirname from './fileUrlToDirname.js'; -const thisDir = fileURLToDirname(import.meta.url); +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'), + path.join(thisDir, '../.electron-vendors.cache.json'), 'utf8', ); -- cgit v1.2.3-54-g00ecf