- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2018 04:43 AM
Hi all,
I'm trying to integrate Servicenow with a linting tool such as eslint or jslint, to enforce standard and custom best practices.
I can see Servicenow embeds Code mirror, which has an eslint plugin.
Is there a documented or undocumented way to add our configuration to the code mirror instances?
Thanks,
Sylvain
Solved! Go to Solution.
- Labels:
-
Best Practices
-
Scripting and Coding
- 3,004 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2019 10:13 PM
Replying to my own old question, answered by the New York release. Check out JavaScript syntax editor on docs.servicenow.com and the glide.ui.syntax_editor.linter.eslint_config sys property.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2018 06:19 AM
I just looked at the store and share portal and don't see anything related to eslint or jslint.
Where did you find the info on Code Mirror?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2018 06:49 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2018 05:06 AM
You can also find CodeMirror in scripts/classes/syntax_editor5/GlideEditor.js.
However ServiceNow uses JSHint "/scripts/classes/syntax_editor2/jshint.js". Can´t you use JSHint instead of?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2019 09:40 AM
I also would like my team to have an easier way to run eslint on their code within the ServiceNow instance. Upvote !
