Skip to content

fix: rename default export SVGLint - #163

Open
regseb wants to merge 1 commit into
simple-icons:masterfrom
regseb:patch-1
Open

fix: rename default export SVGLint#163
regseb wants to merge 1 commit into
simple-icons:masterfrom
regseb:patch-1

Conversation

@regseb

@regseb regseb commented Jul 29, 2026

Copy link
Copy Markdown
Contributor

When importing the default export, it's recommended to use the same name as the exported variable (cf. import-x/no-rename-default).

This package exports a variable named svglint. With the following file:

import SVGLint from "svglint";

const linting = await SVGLint.lintSource("<svg>...</svg>", {
    // ... config object goes here
});

// ...

ESLint and import-x/no-rename-default report this error:

Caution: index.js has a default export svglint. This imports svglint as SVGLint. Check if you meant to write import svglint from 'svglint' instead.


With this pull request, we will be able to use the name SVGLint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant