Eric Cornelissen

Hey there 👋 I'm software engineering and open source enthusiast with an interest in security and usability. You can find me and my work right here or at the links below.


Lints SVG files. Can be run as a command line utility, or as a NodeJS library.


As this linter was relatively new, there was a small issue with the command line utilities when using it on Windows. Because it was originally develop on a Unix system, the input paths where automatically globbed, which does not happen on Windows. So in #3 I added support for globbing on Windows using an existing package and some clever mapping of the input.

After finding out that the base linter does not validate SVGs (over at this Pull Request), I added a new standard rule that validates any SVG passed to the linter in #6. The new rule uses fast-xml-parser to validate if the SVG is structured correctly. Of course, one can disable the validation but by default it is enabled.

Back to top