diff --git a/pages/tsconfig.json b/pages/tsconfig.json index 0a04c32ef5..0b7dcbf581 100644 --- a/pages/tsconfig.json +++ b/pages/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { "lib": ["ES2020", "DOM"], - "target": "ES2015", + "target": "ES2019", "declaration": false, "declarationMap": false, "rootDir": ".", diff --git a/src/test-utils/tsconfig.json b/src/test-utils/tsconfig.json index 568a5797d3..5ff9cd2533 100644 --- a/src/test-utils/tsconfig.json +++ b/src/test-utils/tsconfig.json @@ -1,11 +1,11 @@ { "compilerOptions": { + "lib": ["ES2020", "DOM"], + "target": "ES2019", "strict": true, "incremental": true, "types": [], "module": "CommonJS", - "target": "ES2015", - "lib": ["ES2020", "DOM"], "declaration": true, "allowSyntheticDefaultImports": true, "outDir": "../../lib/components/test-utils", diff --git a/tsconfig.json b/tsconfig.json index acc514fa68..85ed50e90e 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "lib": ["ES2021", "DOM"], - "target": "ES2015", + "lib": ["ES2021", "DOM"], + "target": "ES2019", "types": [], "module": "ES2015", "moduleResolution": "node", @@ -15,11 +15,5 @@ "incremental": true }, "include": ["src", "types"], - "exclude": [ - "**/__tests__/**", - "src/test-utils/**", - "**/__integ__/**", - "**/__a11y__/**", - "**/__motion__/**" - ] + "exclude": ["**/__tests__/**", "src/test-utils/**", "**/__integ__/**", "**/__a11y__/**", "**/__motion__/**"] } diff --git a/tsconfig.unit.json b/tsconfig.unit.json index 8b2c7d5258..fb3c71aca1 100644 --- a/tsconfig.unit.json +++ b/tsconfig.unit.json @@ -1,7 +1,7 @@ { "compilerOptions": { - "target": "es2018", - "lib": ["es2020", "dom"], + "lib": ["es2020", "dom"], + "target": "ES2021", "types": ["node", "jest", "@testing-library/jest-dom"], "moduleResolution": "node", "downlevelIteration": true,