Repository navigation
Patch Notes
hrax edited this page Nov 23, 2022
·
4 revisions
- Updated
nodejsengine to minimum supported NodeJS version 12.22 or 14 and higher - Updated GitHub tests to run with NodeJS 12.22, 14.x and 16.x
- Major refactoring and package separation (common ServiceNow objects vs Linter specific)
- better CLI using commander (see CLI section)
- Replaced xml-js with xmldom and xpath parsing of update xml payload as it is more precise
- Added proxy connection url, that can be used in case proxy connection is required (proxy setting per profile)
- Replaced HTML report with PDF (which decreased the report size as well)
- Added Profile class that is used per-instance profile separation
- Profile separation; profiles are stored in the current user home folder in folder
.now-eslint-profilesand every profile folder has prefixprofile_
This can be overriden withNOW_ESLINT_PROFILE_HOMEnode environment variable - Pretty print profile json data if they need to be edited later manually
- ESLint can be configured per profile via 'eslint.json' placed in profile directory
- No resources copied to the profile
- Hopefully prepared the profiles for more customization
- By Status change chart in the report
- Linter skips fields containing default dictionary value
- Updated ESLint to v7.8.1
- Removed use of deprecated ESLint CLI as a preparation for ESLint v8.
This resulted in change of propertycliEnginewitheslint. Runningnow-eslint setupin new folder is recommended; you can then copy the new generatedconfig.jsonto the old folder or keep using the new one.