Skip to content

Commit

Permalink
Merge pull request #388 from afshin/ES2018
Browse files Browse the repository at this point in the history
  • Loading branch information
blink1073 authored Sep 4, 2022
2 parents e24f3f0 + 447716b commit 42d11c2
Show file tree
Hide file tree
Showing 37 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ module.exports = {
],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 'ES6',
ecmaVersion: 'ES2018',
project: ['./tsconfigbase.json']
},
plugins: ['@typescript-eslint'],
Expand Down
2 changes: 1 addition & 1 deletion docs/source/migration.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ All invocations of `each(...)` have been removed in Lumino 2. See, for example,

### Use `[].forEach(...)` sparingly

Now that we support native ES6 iteration, `for (const value of someArray) {...}` should be favored over `someArray.forEach(...)` because it will not require a context shift every time it invokes the function being applied.
Now that we support native ES2018 iteration, `for (const value of someArray) {...}` should be favored over `someArray.forEach(...)` because it will not require a context shift every time it invokes the function being applied.

### Use `[Symbol.iterator]()` sparingly

Expand Down
4 changes: 2 additions & 2 deletions examples/example-accordionpanel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"sourceMap": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "ES6",
"target": "ES2018",
"outDir": "./build",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"types": []
},
"include": ["src/*"]
Expand Down
4 changes: 2 additions & 2 deletions examples/example-datagrid/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"strictNullChecks": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "ES6",
"target": "ES2018",
"outDir": "./build",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"types": []
},
"include": ["src/*"]
Expand Down
4 changes: 2 additions & 2 deletions examples/example-dockpanel/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
"sourceMap": true,
"module": "commonjs",
"moduleResolution": "node",
"target": "ES6",
"target": "ES2018",
"outDir": "./build",
"lib": ["ES6", "DOM"],
"lib": ["DOM", "ES2018"],
"types": []
},
"include": ["src/*"]
Expand Down
2 changes: 1 addition & 1 deletion packages/algorithm/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/algorithm/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/application/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/application/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/collections/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/collections/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/commands/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/coreutils/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/coreutils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/datagrid/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/disposable/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/disposable/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/domutils/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/domutils/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/dragdrop/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/dragdrop/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/keyboard/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/keyboard/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/messaging/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha", "@types/node"]
Expand Down
2 changes: 1 addition & 1 deletion packages/messaging/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["@types/node"]
Expand Down
2 changes: 1 addition & 1 deletion packages/polling/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,4 +120,4 @@ expect(ticker.join(' ')).to.equal(expected);

### Note for consumers of async iterators

The `Poll` class itself only uses `ES6` (and `DOM`) types in its `lib` collection **but** in order to use `for-await...of` loops in TypeScript, you will need to use `ES2018` or above in your `lib` array in `tsconfig.json`.
In order to use `for-await...of` loops in TypeScript, you will need to use `ES2018` or above in your `lib` array in `tsconfig.json`.
2 changes: 1 addition & 1 deletion packages/polling/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["@types/node"]
Expand Down
2 changes: 1 addition & 1 deletion packages/properties/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/properties/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["ES6"],
"lib": ["ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/signaling/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/signaling/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["@types/node"]
Expand Down
2 changes: 1 addition & 1 deletion packages/virtualdom/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/virtualdom/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion packages/widgets/tests/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../../../tsconfigbase",
"compilerOptions": {
"lib": ["DOM", "ES6"],
"lib": ["DOM", "ES2018"],
"outDir": "lib",
"rootDir": "src",
"types": ["chai", "mocha"]
Expand Down
2 changes: 1 addition & 1 deletion packages/widgets/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"extends": "../../tsconfigbase",
"compilerOptions": {
"declarationDir": "types",
"lib": ["DOM", "DOM.Iterable", "ES6"],
"lib": ["DOM", "DOM.Iterable", "ES2018"],
"outDir": "lib",
"rootDir": "src"
},
Expand Down
2 changes: 1 addition & 1 deletion tsconfigbase.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"resolveJsonModule": true,
"sourceMap": true,
"strictNullChecks": true,
"target": "ES6",
"target": "ES2018",
"types": []
}
}

0 comments on commit 42d11c2

Please sign in to comment.