diff --git a/docs/rules/no-unsupported-features/es-builtins.md b/docs/rules/no-unsupported-features/es-builtins.md index 4d31d432..8ce1875a 100644 --- a/docs/rules/no-unsupported-features/es-builtins.md +++ b/docs/rules/no-unsupported-features/es-builtins.md @@ -10,7 +10,7 @@ Editor integrations of ESLint would be useful to know it in real-time. ### Supported ECMAScript features -This rule supports ECMAScript 2018 and the features which are arrived at Stage 4 by May 2018. +This rule supports ECMAScript 2019. See also [TC39 finished proposals](https://github.com/tc39/proposals/blob/master/finished-proposals.md). ### Configured Node.js version range @@ -37,7 +37,7 @@ If you omit the [engines] field, this rule chooses `>=8.0.0` as the configured N ```json { "node/no-unsupported-features/es-builtins": ["error", { - "version": ">=6.0.0", + "version": ">=8.0.0", "ignores": [] }] } @@ -59,6 +59,10 @@ The `"ignores"` option accepts an array of the following strings.
+**ES2019:** + +- `"Object.fromEntries"` + **ES2017:** - `"Atomics"` diff --git a/lib/rules/no-unsupported-features/es-builtins.js b/lib/rules/no-unsupported-features/es-builtins.js index b2d877c1..fb211297 100644 --- a/lib/rules/no-unsupported-features/es-builtins.js +++ b/lib/rules/no-unsupported-features/es-builtins.js @@ -49,6 +49,7 @@ const trackMap = { }, Object: { assign: { [READ]: { supported: "4.0.0" } }, + fromEntries: { [READ]: { supported: "12.0.0" } }, getOwnPropertySymbols: { [READ]: { supported: "0.12.0" } }, is: { [READ]: { supported: "0.10.0" } }, setPrototypeOf: { [READ]: { supported: "0.12.0" } },