diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 22:16:29 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 22:17:26 +0100 |
commit | fb7118ff1c8f0dcd61f15e51b193512283d83fa1 (patch) | |
tree | 721cee6a64b44a56b7f05f39750a65cda5fb4ef6 /config/buildConstants.js | |
parent | build: Add eslint-plugin-jest (diff) | |
download | sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.tar.gz sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.tar.zst sophie-fb7118ff1c8f0dcd61f15e51b193512283d83fa1.zip |
build: Add eslint-plugin-unicorn
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'config/buildConstants.js')
-rw-r--r-- | config/buildConstants.js | 10 |
1 files changed, 5 insertions, 5 deletions
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 @@ | |||
1 | import { readFileSync } from 'fs'; | 1 | import { readFileSync } from 'node:fs'; |
2 | import { join } from 'path'; | 2 | import path from 'node:path'; |
3 | 3 | ||
4 | import fileURLToDirname from './fileURLToDirname.js'; | 4 | import fileUrlToDirname from './fileUrlToDirname.js'; |
5 | 5 | ||
6 | const thisDir = fileURLToDirname(import.meta.url); | 6 | const thisDir = fileUrlToDirname(import.meta.url); |
7 | 7 | ||
8 | // We import this from a vite config, where top-level await is not available (es2021), | 8 | // We import this from a vite config, where top-level await is not available (es2021), |
9 | // so we have to use the synchronous filesystem API. | 9 | // so we have to use the synchronous filesystem API. |
10 | const electronVendorsJson = readFileSync( | 10 | const electronVendorsJson = readFileSync( |
11 | join(thisDir, '../.electron-vendors.cache.json'), | 11 | path.join(thisDir, '../.electron-vendors.cache.json'), |
12 | 'utf8', | 12 | 'utf8', |
13 | ); | 13 | ); |
14 | 14 | ||