We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

Linting our code?

Syvo
Tera Guru

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

1 ACCEPTED SOLUTION

Syvo
Tera Guru

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.

 

View solution in original post

5 REPLIES 5

Syvo
Tera Guru

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.