Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#349: update stories to typescript #373

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

mob8607
Copy link
Collaborator

@mob8607 mob8607 commented May 2, 2024

Pull request

Refactors storybook stories to typescript.

Ticket

#349

Browser testing

Checklist

  • I merged the current development branch (before testing)
  • Added JSDoc and styleguide demo
  • Tested all links in project relevant browsers
  • Tested all links in different screen sizes
  • Did run automated tests and linters
  • Did assign ticket
  • Double checked target branch

Review/Test checklist

  • Did review code and documentation
  • Tested all links in project relevant browsers
  • Tested all links in different screen sizes
  • Did check accessibility (Wave, only errors)
  • Re-assign ticket to developer

@mob8607 mob8607 self-assigned this May 2, 2024
@mob8607 mob8607 changed the title #349: update stories to typescript WIP: #349: update stories to typescript May 2, 2024
@mob8607 mob8607 changed the title WIP: #349: update stories to typescript #349: update stories to typescript May 6, 2024
…349_storybook-typescript

 Conflicts:
	package.json
	src/plugins/v-focus/styles/styles.scss
	src/stories/elements/e-button.stories.ts
	src/stories/elements/e-checkbox.stories.ts
	src/stories/elements/e-video.stories.ts
Comment on lines +10 to +11
"fix:eslint": "npm run lint:eslint -- --config .eslintrc.fix.cjs --cache=false --fix",
"fix:stylelint": "npm run lint:stylelint -- --cache=false --config .stylelintrc.fix.js --fix",
Copy link
Contributor

Choose a reason for hiding this comment

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

question: are these triggered in the pre-commit hook or just here for manual execution?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

They are for manual execution

render: (args) => ({
const Template: StoryObj = {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
render: (args: any) => ({
Copy link
Contributor

Choose a reason for hiding this comment

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

note: I don't like having any here. But I think for now it is sufficient enough.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I couldn't get it to work without it. Maybe I missed something here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants