Skip to content
This repository has been archived by the owner on Feb 6, 2024. It is now read-only.

support as statement in csf3 format #38

Merged
merged 3 commits into from
Aug 15, 2023
Merged

support as statement in csf3 format #38

merged 3 commits into from
Aug 15, 2023

Conversation

fa93hws
Copy link
Contributor

@fa93hws fa93hws commented Aug 15, 2023

Do you think we need to have a linting rule to enforce they have to use object literal expression like

export default {
  title: 'xxx'
}

instead of

const foo = {
  title: 'xxx',
}
export default foo;

bradzacher
bradzacher previously approved these changes Aug 15, 2023
Copy link
Member

@bradzacher bradzacher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe also want to pre-emptively support satisfies as well?

bradzacher
bradzacher previously approved these changes Aug 15, 2023
src/processors/feature.ts Outdated Show resolved Hide resolved
src/processors/feature.ts Outdated Show resolved Hide resolved
src/processors/feature.ts Outdated Show resolved Hide resolved
src/processors/feature.ts Outdated Show resolved Hide resolved
src/processors/feature.ts Outdated Show resolved Hide resolved
@fa93hws fa93hws merged commit b20ce57 into main Aug 15, 2023
4 checks passed
@fa93hws fa93hws deleted the eric/stories-csf3/as branch August 15, 2023 11:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants