From 6837fc51719a862c1c2978c666c8516060091d70 Mon Sep 17 00:00:00 2001 From: Soybean Date: Thu, 24 Oct 2024 22:57:31 +0800 Subject: [PATCH] optimize(projects): optimize --- package.json | 1 - pnpm-lock.yaml | 3 --- src/configs/javascript.ts | 4 ++-- 3 files changed, 2 insertions(+), 6 deletions(-) diff --git a/package.json b/package.json index 88b389b..78aae16 100644 --- a/package.json +++ b/package.json @@ -139,7 +139,6 @@ "devDependencies": { "@soybeanjs/cli": "1.1.1", "@toml-tools/parser": "1.0.0", - "@types/eslint": "9.6.1", "@types/eslint-config-prettier": "6.11.3", "@types/eslint__js": "8.42.3", "@types/node": "22.7.9", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1201b6f..5a12676 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -72,9 +72,6 @@ importers: '@toml-tools/parser': specifier: 1.0.0 version: 1.0.0 - '@types/eslint': - specifier: 9.6.1 - version: 9.6.1 '@types/eslint-config-prettier': specifier: 6.11.3 version: 6.11.3 diff --git a/src/configs/javascript.ts b/src/configs/javascript.ts index cf8bc4b..50fbe60 100644 --- a/src/configs/javascript.ts +++ b/src/configs/javascript.ts @@ -7,10 +7,10 @@ export function createJsConfig(overrides: Record = {}) { const js: FlatConfigItem[] = [ { languageOptions: { - ecmaVersion: 2022, + ecmaVersion: 2023, globals: { ...globals.browser, - ...globals.es2021, + ...globals.es2025, ...globals.node, document: 'readonly', navigator: 'readonly',