-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Update prettier and add import sorting #11742
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this builds, should be good.
@@ -6,8 +6,7 @@ const BigButton = styled(Button)<{ shadow?: boolean }>` | |||
line-height: 19px; | |||
padding: 10px 27px; | |||
font-weight: 500; | |||
box-shadow: ${({ shadow }) => | |||
shadow ? "0 8px 5px -5px rgba(0, 0, 0, 0.2)" : "none"}; | |||
box-shadow: ${({ shadow }) => (shadow ? "0 8px 5px -5px rgba(0, 0, 0, 0.2)" : "none")}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be $shadow
?
@@ -14,8 +14,7 @@ type IProps = { | |||
const Title = styled(H5)<{ light?: boolean }>` | |||
padding: ${({ light }) => (light ? "19px 20px 20px" : "25px 25px 22px")}; | |||
color: ${({ theme }) => theme.darkPrimaryColor}; | |||
box-shadow: ${({ light, theme }) => | |||
light ? "none" : `0 1px 2px ${theme.shadowColor}`}; | |||
box-shadow: ${({ light, theme }) => (light ? "none" : `0 1px 2px ${theme.shadowColor}`)}; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure it's worth fixing all the $
stuff for the css.
This PR updates prettier as well as sets the line width to 120 (discussed offline).
Since it anyway touches all the files, we also enabled automatic import sorting on all files.
The only files touched manually in this PR where package.json, .prettierrc.js and .eslintrc. The rest of the changes are automatic eslint fixes (formatting).