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
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:
Suggest an idea for this project
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:
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:
This would ignore only type exports which end with "Props", for example:
The text was updated successfully, but these errors were encountered: