You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The whole defaults are pretty good I just had to specify sortFirst to fully fit my needs but one small issue is the default sortExports, it's "missing" the svelte one before default which makes publint (rightfully) complain:
@mtb/svelte-core lint results:
Errors:
1. pkg.exports["./inputs"].default should be the last in the object so it doesn't tak
e precedence over the keys following it.
2. pkg.exports["./menus"].default should be the last in the object so it doesn't take
precedence over the keys following it.
3. pkg.exports["./spinners"].default should be the last in the object so it doesn't t
ake precedence over the keys following it.
4. pkg.exports["./stores"].default should be the last in the object so it doesn't tak
e precedence over the keys following it.
5. pkg.exports["./viz"].default should be the last in the object so it doesn't take p
recedence over the keys following it.
I'm not 100% sure how much of these extra key exist and if it makes sense to add them to defaults if there are many...
A better approach I can think of is a new config like exportDefaultAlwaysLast: true or similar
Description
The whole defaults are pretty good I just had to specify
sortFirst
to fully fit my needs but one small issue is the defaultsortExports
, it's "missing" thesvelte
one before default which makespublint
(rightfully) complain:Suggested Solution
Use this as default:
Optional comments
I'm not 100% sure how much of these extra key exist and if it makes sense to add them to defaults if there are many...
A better approach I can think of is a new config like
exportDefaultAlwaysLast: true
or similarCode of Conduct
The text was updated successfully, but these errors were encountered: