diff --git a/eslint.config.mts b/eslint.config.mts index eb3aee4b2bc..46b5692b59b 100644 --- a/eslint.config.mts +++ b/eslint.config.mts @@ -38,7 +38,7 @@ const rootConfig: ConfigWithExtends = { languageOptions: { parser: tsEslint.parser, - ecmaVersion: 6, + ecmaVersion: 2022, sourceType: "module", parserOptions: { projectService: true, diff --git a/packages/cheatsheet-local/tsconfig.json b/packages/cheatsheet-local/tsconfig.json index 34703aa2420..41c92a2327f 100644 --- a/packages/cheatsheet-local/tsconfig.json +++ b/packages/cheatsheet-local/tsconfig.json @@ -1,12 +1,12 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { + "target": "es2022", + "lib": ["dom", "es2022"], "jsx": "react-jsx", - "lib": ["es5", "es6", "dom"], "allowSyntheticDefaultImports": true, "skipLibCheck": true, "esModuleInterop": true, - "target": "es5", "allowJs": true }, "ts-node": { diff --git a/packages/cheatsheet/tsconfig.json b/packages/cheatsheet/tsconfig.json index e73c1b1ccca..c01e6638018 100644 --- a/packages/cheatsheet/tsconfig.json +++ b/packages/cheatsheet/tsconfig.json @@ -1,10 +1,11 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { + "target": "es2022", + "lib": ["dom", "es2022"], "jsx": "react-jsx", "esModuleInterop": true, - "skipLibCheck": true, - "lib": ["es5", "es6", "dom"] + "skipLibCheck": true }, "references": [], "include": [ diff --git a/packages/cursorless-engine/tsconfig.json b/packages/cursorless-engine/tsconfig.json index 82daced7aed..abf496b58c4 100644 --- a/packages/cursorless-engine/tsconfig.json +++ b/packages/cursorless-engine/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "target": "es2020" - }, "include": ["src/**/*.ts", "src/**/*.json", "../../typings/**/*.d.ts"], "references": [ { diff --git a/packages/cursorless-everywhere-talon-core/tsconfig.json b/packages/cursorless-everywhere-talon-core/tsconfig.json index c2fb02395a8..fe0f62e62c6 100644 --- a/packages/cursorless-everywhere-talon-core/tsconfig.json +++ b/packages/cursorless-everywhere-talon-core/tsconfig.json @@ -1,7 +1,6 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2022", "typeRoots": ["src/types", "node_modules/@types"] }, "references": [ diff --git a/packages/cursorless-everywhere-talon-e2e/tsconfig.json b/packages/cursorless-everywhere-talon-e2e/tsconfig.json index 919f526c7d0..a6b67fbd558 100644 --- a/packages/cursorless-everywhere-talon-e2e/tsconfig.json +++ b/packages/cursorless-everywhere-talon-e2e/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "target": "ES2022" - }, "include": ["src/**/*.ts", "src/**/*.json", "../../typings/**/*.d.ts"], "references": [ { diff --git a/packages/cursorless-everywhere-talon/tsconfig.json b/packages/cursorless-everywhere-talon/tsconfig.json index 85bb0cf5558..e60cb3c2250 100644 --- a/packages/cursorless-everywhere-talon/tsconfig.json +++ b/packages/cursorless-everywhere-talon/tsconfig.json @@ -1,9 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "ES2022", "noEmit": true, - "emitDeclarationOnly": false, "typeRoots": ["src/types", "node_modules/@types"] }, "references": [ diff --git a/packages/cursorless-org-docs/tsconfig.json b/packages/cursorless-org-docs/tsconfig.json index 322ef16b429..561c8d4a1bb 100644 --- a/packages/cursorless-org-docs/tsconfig.json +++ b/packages/cursorless-org-docs/tsconfig.json @@ -1,13 +1,12 @@ { "extends": ["@tsconfig/docusaurus/tsconfig.json", "../../tsconfig.base.json"], "compilerOptions": { - "target": "es5", + "target": "es2022", "lib": ["dom", "es2022"], "moduleResolution": "nodenext", "module": "nodenext", - "esModuleInterop": true, - "emitDeclarationOnly": false, - "jsx": "react" + "jsx": "react", + "esModuleInterop": true }, "include": [ "src/**/*.ts", diff --git a/packages/cursorless-org/tsconfig.json b/packages/cursorless-org/tsconfig.json index 569aece3211..6a6bf5cab71 100644 --- a/packages/cursorless-org/tsconfig.json +++ b/packages/cursorless-org/tsconfig.json @@ -1,16 +1,15 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], + "target": "es2022", + "lib": ["dom", "es2022"], + "jsx": "preserve", "allowJs": true, "skipLibCheck": true, "noEmit": true, - "emitDeclarationOnly": false, "esModuleInterop": true, "resolveJsonModule": true, "isolatedModules": true, - "jsx": "preserve", "incremental": true }, "include": [ diff --git a/packages/cursorless-vscode-tutorial-webview/tsconfig.json b/packages/cursorless-vscode-tutorial-webview/tsconfig.json index f7a10498927..d2209687b14 100644 --- a/packages/cursorless-vscode-tutorial-webview/tsconfig.json +++ b/packages/cursorless-vscode-tutorial-webview/tsconfig.json @@ -1,8 +1,8 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "jsx": "react-jsx", - "lib": ["es2022", "dom"] + "lib": ["dom", "es2022"], + "jsx": "react-jsx" }, "references": [ { diff --git a/packages/cursorless-vscode/tsconfig.json b/packages/cursorless-vscode/tsconfig.json index 26248d47336..8a62c77d93c 100644 --- a/packages/cursorless-vscode/tsconfig.json +++ b/packages/cursorless-vscode/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "target": "es2020" - }, "include": ["src/**/*.ts", "src/**/*.json", "../../typings/**/*.d.ts"], "references": [ { diff --git a/packages/meta-updater/tsconfig.json b/packages/meta-updater/tsconfig.json index 4bd3b640a8f..525f87033c4 100644 --- a/packages/meta-updater/tsconfig.json +++ b/packages/meta-updater/tsconfig.json @@ -1,10 +1,7 @@ { "extends": "../../tsconfig.base.json", "compilerOptions": { - "target": "es2020", - "module": "ES2020", "moduleResolution": "node", - "moduleDetection": "force", "esModuleInterop": true }, "include": ["src/**/*.ts", "src/**/*.json", "../../typings/**/*.d.ts"], diff --git a/packages/vscode-common/tsconfig.json b/packages/vscode-common/tsconfig.json index 457f5257045..0f90f239b48 100644 --- a/packages/vscode-common/tsconfig.json +++ b/packages/vscode-common/tsconfig.json @@ -1,8 +1,5 @@ { "extends": "../../tsconfig.base.json", - "compilerOptions": { - "target": "es2020" - }, "include": ["src/**/*.ts", "src/**/*.json", "../../typings/**/*.d.ts"], "references": [ { diff --git a/tsconfig.base.json b/tsconfig.base.json index e5fedcda526..c4c433f6278 100644 --- a/tsconfig.base.json +++ b/tsconfig.base.json @@ -3,7 +3,7 @@ "module": "ESNext", "moduleResolution": "Bundler", "moduleDetection": "force", - "target": "es6", + "target": "es2022", "lib": ["es2022"], "emitDeclarationOnly": true, "declarationMap": true,