Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lint/format svg files #643

Open
3 tasks done
some-user123 opened this issue Dec 18, 2024 · 2 comments
Open
3 tasks done

Lint/format svg files #643

some-user123 opened this issue Dec 18, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@some-user123
Copy link

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

@some-user123 some-user123 added the enhancement New feature or request label Dec 18, 2024
@pauliesnug
Copy link

pauliesnug commented Dec 23, 2024

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?

@ntnyq
Copy link
Contributor

ntnyq commented Jan 7, 2025

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants