Please note that this version of the site is no longer being updated. All content has been merged with my IT Blog "Much Ado About IT". Click here to see this page on the other site. I've found that using Jekyll to be too fragile and complex. GitHub pages are too limited. The blog site was on WordPress (self-hosted) but that was too slow and clunky. The revamped blog now uses Hugo and is published using Netlify
How to use the ACE editor in the Function node
The ACE editor is used in the function node to help you create well-formed JavaScript. However, there are now a number of different versions of JavaScript and it is sometimes helpful to use slightly different styles of coding to the defaults.
ACE uses JSHint which allows you to override settings locally.
Use something like the following at the start of your Function code:
/*jshint sub:true,asi:true,maxerr:1000*/
which would, for example:
- Turn off the warnings about using subscripting to access object properties.
- Turn off warnings about missing semi-colons.
- Continue processing warnings & errors up to 1,000 lines instead of the default 50.
See the JSHint documentation for more information.