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

chore: use absolute imports with @ alias and format code on save #332

Merged
merged 3 commits into from
Jun 10, 2022

Conversation

peterslany
Copy link
Contributor

This PR introduces new format of absolute path imports: using @/ alias for src/. PR is big because all imports are converted into this new format.

Also VS Code on-save actions are defined which make the prettier and ESLint fixing run on each save of the file.
Requirements to be able to utilize auto-formatting on each save are 2 VS Code extensions:

@vercel
Copy link

vercel bot commented Jun 10, 2022

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated
interbtc-ui-interlay ✅ Ready (Inspect) Visit Preview Jun 10, 2022 at 2:34PM (UTC)
interbtc-ui-kintsugi ✅ Ready (Inspect) Visit Preview Jun 10, 2022 at 2:34PM (UTC)
interbtc-ui-testnet ✅ Ready (Inspect) Visit Preview Jun 10, 2022 at 2:34PM (UTC)

Copy link
Collaborator

@tomjeatt tomjeatt left a comment

Choose a reason for hiding this comment

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

hi @peterslany - config looks good, but I'm not going to review 233 files so I'll take your word that it all works :)

@github-actions
Copy link

Running Lighthouse audit...

@peterslany
Copy link
Contributor Author

hi @peterslany - config looks good, but I'm not going to review 233 files so I'll take your word that it all works :)

Yes, I tested it and it worked, also updated storybook config, so Chromatic works as it should too :)

@peterslany peterslany merged commit 44fa8c7 into master Jun 10, 2022
@peterslany peterslany deleted the peter/chore-vscode-onsaveactions branch June 10, 2022 14:41
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