It would be useful to be able to ignore certain exports by pattern or regex matching. For example I like to always export the props type of a React component in its file. It may not be used anywhere else yet, but is conveniently there for the future and reduces git diffs.
This can somewhat be achieved using these settings:
{
"ignoreExportsUsedInFile": {
"type": true
}
}
However this prevents all other type exports from being reported as well, which is not ideal. The config could accept an array of patterns to ignore instead:
{
"ignoreExportsUsedInFile": {
"type": [".*Props"]
}
}
This would ignore only type exports which end with "Props", for example:
// Matches, OK // Not used, reported
export type { ComponentNameProps, SomeOtherType }
export { ComponentName }
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too