diff options
author | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 20:33:53 +0100 |
---|---|---|
committer | Kristóf Marussy <kristof@marussy.com> | 2022-01-09 20:33:53 +0100 |
commit | d85f09cbed5f3d2501f791e689011ae127df1cbb (patch) | |
tree | 0ed5be55dd5d3dec1d51eb60e7ff229274030a57 /config/buildConstants.js | |
parent | build: Disable single-run eslint-typescript (diff) | |
download | sophie-d85f09cbed5f3d2501f791e689011ae127df1cbb.tar.gz sophie-d85f09cbed5f3d2501f791e689011ae127df1cbb.tar.zst sophie-d85f09cbed5f3d2501f791e689011ae127df1cbb.zip |
build: Add prettier
eslint will also enforce prettier rules, so there is no need to call
prettier separately in CI.
Signed-off-by: Kristóf Marussy <kristof@marussy.com>
Diffstat (limited to 'config/buildConstants.js')
-rw-r--r-- | config/buildConstants.js | 8 |
1 files changed, 6 insertions, 2 deletions
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); | |||
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(join(thisDir, '../.electron-vendors.cache.json'), 'utf8'); | 10 | const electronVendorsJson = readFileSync( |
11 | join(thisDir, '../.electron-vendors.cache.json'), | ||
12 | 'utf8', | ||
13 | ); | ||
11 | 14 | ||
12 | /** @type {{ chrome: number; node: number; }} */ | 15 | /** @type {{ chrome: number; node: number; }} */ |
13 | // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment | 16 | // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment |
14 | const { chrome: chromeVersion, node: nodeVersion } = JSON.parse(electronVendorsJson); | 17 | const { chrome: chromeVersion, node: nodeVersion } = |
18 | JSON.parse(electronVendorsJson); | ||
15 | 19 | ||
16 | /** @type {string} */ | 20 | /** @type {string} */ |
17 | export const banner = `/*! | 21 | export const banner = `/*! |