Closed stephenhmarsh closed 2 years ago
Hey @stephenhmarsh thanks a lot for your contribution! I moved the logic into a utility function so that it can be reused by other rules. I also changed the check from local
to exported
, although I'm not sure which would matter the most 🤔 @shilman thoughts?
const primary = {} <-- local name
export { primary } <-- exported name
Welcome! Yeah I just went with local
initially because I wasn't sure either. Like, if someone does export { story1 as name1 }
, how does that change things like checks against excludeStories
, etc.?
Welcome! Yeah I just went with
local
initially because I wasn't sure either. Like, if someone doesexport { story1 as name1 }
, how does that change things like checks againstexcludeStories
, etc.?
the checks will be done with what's being exported from the package, therefore I believe we should go with the exported
check!
Thanks a lot for your contribution @stephenhmarsh !! Superb stuff 👌
:rocket: PR was released in v0.5.3
:rocket:
Awesome thanks @yannbf 👍
Issue: #57
What Changed
Fixed a bug where the story-exports rule gave a false negative because it did not check for exports from an export list, only from inline export declarations.
Checklist
Check the ones applicable to your change:
yarn update-all
Change Type
Indicate the type of change your pull request is:
maintenance
documentation
patch
minor
major