Skip to content

Commit 955ea9f

Browse files
Bump prettier from 2.0.5 to 2.1.2 (#1490)
1 parent eb3b170 commit 955ea9f

File tree

12 files changed

+33
-30
lines changed

12 files changed

+33
-30
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
"lint-staged": "^10.4.0",
7171
"npm-run-all": "^4.1.5",
7272
"pre-commit": "1.2.2",
73-
"prettier": "^2.0.5",
73+
"prettier": "^2.1.2",
7474
"react": "^16.13.1",
7575
"react-dom": "^16.13.1",
7676
"styled-components": "^4.4.1",

packages/components/src/ActionList/utils/actionListFormatting.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,10 +63,10 @@ export const numericColumnCSS = (columnIndices: number[]) =>
6363
${columnIndices.map(
6464
(columnIndex) =>
6565
css`
66-
${ActionListItemColumn}:nth-child(${columnIndex + 1}),
67-
${ActionListHeaderColumn}:nth-child(${columnIndex + 1}) {
68-
flex-direction: row-reverse;
69-
}
70-
`
66+
${ActionListItemColumn}:nth-child(${columnIndex + 1}),
67+
${ActionListHeaderColumn}:nth-child(${columnIndex + 1}) {
68+
flex-direction: row-reverse;
69+
}
70+
`
7171
)}
7272
`

packages/components/src/Avatar/AvatarIcon.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,7 @@ const AvatarLayout: FC<AvatarIconProps> = ({
9696

9797
export const AvatarIcon = styled(AvatarLayout)`
9898
${avatarCSS}
99-
${({ role }) =>
100-
role === 'button' && 'cursor: pointer;'}
99+
${({ role }) => role === 'button' && 'cursor: pointer;'}
101100
border: solid 1px currentColor;
102101
103102
${Icon} {

packages/components/src/Avatar/AvatarUser.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,7 @@ export const AvatarUser = styled(AvatarLayout).attrs((props) => ({
8989
size: props.size || 'small',
9090
}))`
9191
${avatarCSS}
92-
${({ role }) =>
93-
role === 'button' && 'cursor: pointer;'}
92+
${({ role }) => role === 'button' && 'cursor: pointer;'}
9493
9594
background: currentColor;
9695
position: relative;

packages/components/src/Menu/MenuList.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ export interface MenuListProps
7070
compact?: boolean
7171

7272
/**
73-
* Display a horizonal rule between each MenuGroup item
73+
* Display a horizontal rule between each MenuGroup item
7474
* @default true
7575
*/
7676
groupDividers?: boolean
@@ -164,10 +164,10 @@ export const MenuListInternal = forwardRef(
164164
const dividersStyle = ({ groupDividers = true }: MenuListProps) =>
165165
groupDividers &&
166166
css`
167-
${MenuGroup} ~ ${MenuGroup} {
168-
border-top: 1px solid ${({ theme: { colors } }) => colors.ui2};
169-
}
170-
`
167+
${MenuGroup} ~ ${MenuGroup} {
168+
border-top: 1px solid ${({ theme: { colors } }) => colors.ui2};
169+
}
170+
`
171171

172172
export const MenuList = styled(MenuListInternal)`
173173
${reset}

packages/eslint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
"eslint-plugin-react-hooks": "^4.1.2",
4242
"eslint-plugin-sort-keys-fix": "^1.1.1",
4343
"eslint-plugin-standard": "^4.0.1",
44-
"prettier": "^2.0.5",
44+
"prettier": "^2.1.2",
4545
"typescript": "^3.8.3"
4646
},
4747
"resolutions": {

packages/prettier/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"index.json"
1919
],
2020
"dependencies": {
21-
"prettier": ">=2.0.5"
21+
"prettier": ">=2.1.2"
2222
},
2323
"gitHead": "62febc162e3e45124f403e2c84fc741f68fe6714"
2424
}

packages/stylelint-config/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
"yarn": ">=1.14.0"
1919
},
2020
"dependencies": {
21-
"prettier": "^2.0.5",
21+
"prettier": "^2.1.2",
2222
"stylelint": "^13.7.2",
2323
"stylelint-config-prettier": "^8.0.1",
2424
"stylelint-config-recommended": "^3.0.0",

storybook/src/Forms/TextArea.stories.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const All = () => (
3333
<Required />
3434
<Error />
3535
<Inline />
36-
<Resize />>
36+
<Resize />
3737
</Grid>
3838
)
3939

www/src/documentation/components/content/demos/CalendarPropTable.tsx

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export const CalendarPropTable = () => {
5555
<TableRow>
5656
<TableDataCell pr="large">onDayClick</TableDataCell>
5757
<TableDataCell pr="large">
58-
<Code>(date: Date) => void</Code>
58+
<Code>(date: Date) ={'>'} void</Code>
5959
</TableDataCell>
6060
</TableRow>
6161
<TableRow>
@@ -98,25 +98,25 @@ export const CalendarPropTable = () => {
9898
<TableRow>
9999
<TableDataCell pr="large">onNextClick</TableDataCell>
100100
<TableDataCell pr="large">
101-
<Code>(date: Date) => void</Code>
101+
<Code>(date: Date) ={'>'} void</Code>
102102
</TableDataCell>
103103
</TableRow>
104104
<TableRow>
105105
<TableDataCell pr="large">onNowClick</TableDataCell>
106106
<TableDataCell pr="large">
107-
<Code>(date: Date) => void</Code>
107+
<Code>(date: Date) ={'>'} void</Code>
108108
</TableDataCell>
109109
</TableRow>
110110
<TableRow>
111111
<TableDataCell pr="large">onPrevClick</TableDataCell>
112112
<TableDataCell pr="large">
113-
<Code>(date: Date) => void</Code>
113+
<Code>(date: Date) ={'>'} void</Code>
114114
</TableDataCell>
115115
</TableRow>
116116
<TableRow>
117117
<TableDataCell pr="large">onMonthChange</TableDataCell>
118118
<TableDataCell pr="large">
119-
<Code>(date: Date) => void</Code>
119+
<Code>(date: Date) ={'>'} void</Code>
120120
</TableDataCell>
121121
</TableRow>
122122
<TableRow>
@@ -133,10 +133,10 @@ export const CalendarPropTable = () => {
133133
}
134134

135135
const TableKey = styled.div`
136-
border-top: 1px solid ${({ theme }) => theme.colors.ui2};
137136
background: ${({ theme }) => theme.colors.ui1};
137+
border-top: 1px solid ${({ theme }) => theme.colors.ui2};
138138
color: ${({ theme }) => theme.colors.text3};
139139
font-weight: bold;
140-
padding: 0.5rem;
141140
margin-bottom: 2rem;
141+
padding: 0.5rem;
142142
`

0 commit comments

Comments
 (0)