Skip to content

Commit 71bda9e

Browse files
committed
new: Use ECMA 2022 as the latest target.
1 parent 8521bb1 commit 71bda9e

File tree

7 files changed

+5
-6
lines changed

7 files changed

+5
-6
lines changed

packages/constants/src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ export const TSCONFIG_JSON_PATH = path.join(ROOT, 'tsconfig.json');
1010
export const CASE_SENSITIVE = false;
1111

1212
// Latest ECMA version and syntax to support
13-
export const ECMA_VERSION = 2020;
13+
export const ECMA_VERSION = 2022;
1414

1515
// Files and folders to always ignore
1616
export const IGNORE_LIST = [

packages/eslint-config/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ const config: eslint.Linter.Config = {
2020
},
2121
globals: {
2222
[`__DEV__`]: 'readonly',
23+
[`__TEST__`]: 'readonly',
2324
[`__PROD__`]: 'readonly',
2425
},
2526
parserOptions: {

packages/jest-preset/src/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ const config = {
3232
},
3333
globals: {
3434
[`__DEV__`]: true,
35+
[`__TEST__`]: true,
3536
[`__PROD__`]: true,
3637
},
3738
moduleNameMapper: {

packages/tsconfig/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Extend the config from your root `tsconfig.json`.
3030
- Supports synthetic default exports.
3131
- Enables ES interoperability and isolation.
3232
- Enables the `esnext` lib.
33-
- Targets `es2020` (since we only type check).
33+
- Targets `es2022` (since we only type check).
3434
- Supports project references through the `tsconfig.workspaces.json` config.
3535
- Enables declaration emitting.
3636
- Supports React through the `tsconfig.react.json` config.

packages/tsconfig/tsconfig.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"display": "Beemo",
4-
54
"compilerOptions": {
65
"allowJs": false,
76
"allowSyntheticDefaultImports": true,
@@ -22,6 +21,6 @@
2221
"skipLibCheck": true,
2322
"sourceMap": false,
2423
"strict": true,
25-
"target": "es2020"
24+
"target": "es2022"
2625
}
2726
}

packages/tsconfig/tsconfig.react.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"display": "Beemo with React",
4-
54
"extends": "./tsconfig.json",
65
"compilerOptions": {
76
"lib": ["dom"],

packages/tsconfig/tsconfig.workspaces.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"$schema": "https://json.schemastore.org/tsconfig",
33
"display": "Beemo with Workspaces",
4-
54
"extends": "./tsconfig.json",
65
"compilerOptions": {
76
"composite": true,

0 commit comments

Comments
 (0)