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

fix(ui): fix no-restrict-syntax in ui #1559

Merged
merged 3 commits into from
Jul 18, 2022
Merged

fix(ui): fix no-restrict-syntax in ui #1559

merged 3 commits into from
Jul 18, 2022

Conversation

simeng-li
Copy link
Contributor

Summary

Fix most of the no-restricted-syntax in UI.
Disable the lint for some corner cases.

Introduce superstruct to the UI package. Use superstruct to guard some unknown input type like location.state.

Testing

test locally
@logto-io/eng

@linear
Copy link

linear bot commented Jul 15, 2022

@github-actions
Copy link

github-actions bot commented Jul 15, 2022

COMPARE TO master

Total Size Diff 📈 +415 Bytes

Diff by File
Name Diff
packages/ui/package.json 📈 +7 Bytes
packages/ui/src/containers/SocialSignIn/SocialSignInDropdown/index.tsx 📈 +16 Bytes
packages/ui/src/hooks/use-bind-social.ts 📈 +58 Bytes
packages/ui/src/hooks/use-form.ts 📈 +52 Bytes
packages/ui/src/hooks/use-preview.ts 📈 +176 Bytes
packages/ui/src/hooks/use-social-sign-in-listener.ts 📈 +75 Bytes
packages/ui/src/pages/Passcode/index.tsx 📈 +210 Bytes
packages/ui/src/types/guard.ts 📈 +324 Bytes
packages/ui/src/types/index.ts 📈 +275 Bytes
packages/ui/src/utils/country-code.ts 📈 +53 Bytes
packages/ui/src/utils/index.ts 📈 +211 Bytes
packages/ui/src/utils/sign-in-experience.ts 📈 +23 Bytes
pnpm-lock.yaml 📈 +53 Bytes

packages/ui/src/hooks/use-bind-social.ts Outdated Show resolved Hide resolved
packages/ui/src/hooks/use-form.ts Outdated Show resolved Hide resolved
packages/ui/src/hooks/use-form.ts Outdated Show resolved Hide resolved
packages/ui/src/hooks/use-form.ts Outdated Show resolved Hide resolved
packages/ui/src/hooks/use-preview.ts Show resolved Hide resolved
packages/ui/src/utils/index.ts Outdated Show resolved Hide resolved
fix no-restricted-syntax in ui
packages/ui/src/utils/index.ts Show resolved Hide resolved
@simeng-li simeng-li merged commit 816ce9f into master Jul 18, 2022
@simeng-li simeng-li deleted the simeng-log-3656 branch July 18, 2022 11:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants