Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2023 10:58 PM
Is there a way we can create custom eslint rule in servicenow which can through warning message whenever we use gs.log function in any Script?
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2023 11:45 PM
Updated the eslint property with below code snippet and it worked..
"no-restricted-properties": [ "warn", {
"object": "gs",
"property": "log",
"message": "optional explanation to the recurring problems we've had"
}]
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-19-2023 11:45 PM
Updated the eslint property with below code snippet and it worked..
"no-restricted-properties": [ "warn", {
"object": "gs",
"property": "log",
"message": "optional explanation to the recurring problems we've had"
}]