Lint/format svg files
Clear and concise description of the problem
My project (nuxt + antfu eslint config) contains different file types, incl. svg files. Currently they are not linted/formattet.
Suggested solution
Apply stylistic rules to them as well...
Alternative
No response
Additional context
No response
Validations
- [X] Follow our Code of Conduct
- [X] Read the Contributing Guide.
- [X] Check that there isn't already an issue that request the same feature to avoid creating a duplicate.
we have xml support with prettier formatters which includes svgs. if you can find some sort of eslint plugin or language support for svgs/xmls that can be added natively.
i know there was a discussion about html support, but it didnt go anywhere. maybe circle back on that?
I've created an ESLint plugin eslint-plugin-svgo which provides SVG optimize services based on SVGO. It supports all SVGO options and plugins. You can even create custom SVGO plugins and run with it.
I'm also working on eslint-plugin-svg, but it's not production ready for now.
I believe this was implemented by now.