From 11bb2bdbb9911727b06e32ce2abc52fc07f2126c Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 1 Jan 2024 00:38:28 -0600 Subject: [PATCH] use es2022 --- .eslintrc.cjs | 1 + tsconfig.json | 2 +- vite.config.js | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d44b69e..18cd7d0 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -15,6 +15,7 @@ module.exports = { env: { browser: true, es2020: true, + es2022: true, node: true, }, rules: { diff --git a/tsconfig.json b/tsconfig.json index 013f11d..899eb83 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "moduleResolution": "node", "module": "es2022", - "lib": ["es2020", "DOM", "WebWorker"], + "lib": ["es2022", "DOM", "WebWorker"], "target": "es2020", /** svelte-preprocess cannot figure out whether you have a value or a type, so tell TypeScript diff --git a/vite.config.js b/vite.config.js index b0b09aa..a505b37 100644 --- a/vite.config.js +++ b/vite.config.js @@ -7,7 +7,7 @@ export default { plugins: [sveltekit(), pngToGifForRetro()], build: { - target: 'es2020', + target: 'es2022', }, base: '',