Path to ES6, ES7?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-07-2017 11:33 AM
Is there current roadmap to upgrade the platform to ES6, or 7? I know Helsinki upgraded it to ES5.
- 15,914 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-06-2022 02:16 PM
I just started testing using ES6+ in Tokyo. So far so good. Really appreciate being able to write modern JS on the platform.
I ran into a problem. I use the SNOW extension for VSCode. It will not allow me to sync files that have ES6+ syntax. It's due to the ESLint configuration that runs before a file is synced. I can see the code here from the plugin:
u = new(0, r.CLIEngine)({
envs: ["browser", "mocha"],
useEslintrc: !1
});
The ESLint configuration for the CLIEngine the plugin is using is only configured for ES5, so we need to either be able to specify an ESLint config file, or have that configuration changed to something like:
u = new(0, r.CLIEngine)({
envs: ["es2020", "browser", "mocha"],
useEslintrc: !1
});
I've made that update locally to my own version of the plugin and it fixes the problem. You could also think about open sourcing the plugin as it doesn't look like it receives any updates. It's not fun looking through minified code to find a problem.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-21-2022 12:40 PM
ES12 support is available in the Tokyo release. More info here: https://developer.servicenow.com/blog.do?p=/post/tokyo-ecmascript-2021/
The upcoming Utah release will have additional improvements to compatibility.