Definition for rule was not found
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2025 06:58 AM
Some of the developers on my team have noticed that recently ServiceNow code linter has begun throwing the following errors on new script includes using the default boilerplate code that gets auto-populated after the user enters a name for the script include:
Definition for rule 'sn-no-async-await' was not found.
Definition for rule 'sn-no-generator-functions' was not found.
Definition for rule 'sn-no-promises' was not found.
Screenshot:
These warnings appear on every script include I've read in the platform recently, and although it doesn't seem to have any effect on the code output, it is annoying. Does anybody know how to resolve these warnings?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-07-2025 07:35 AM - edited 05-07-2025 07:37 AM
These error comes up if there are issues with ESLint configuration.
To remove these errors, you can update system property glide.ui.syntax_editor.linter.eslint_config.ecmascript2021 to have below settings at the end.
"sn-no-async-await":"off",
"sn-no-generator-functions":"off",
"sn-no-promises":"off"
If this doesn't work then update the same in below property as well ( most probably not needed assuming that you have latest ServiceNow version )
glide.ui.syntax_editor.linter.eslint_config
Regards,
Abhijit
ServiceNow MVP
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-08-2025 06:27 AM
I would love to know if your issue is resolved.
Regards,
Abhijit
ServiceNow MVP