Skip to content

Commit 1cfe66f

Browse files
committed
bumps jscodeshift to remove jsx bracket issue
1 parent e41cbfe commit 1cfe66f

File tree

46 files changed

+185
-140
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+185
-140
lines changed

.changeset/forty-hairs-buy.md

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
---
2+
'@hypermod/mod-atlaskit__progress-indicator': patch
3+
'@hypermod/mod-atlaskit__section-message': patch
4+
'@hypermod/mod-atlaskit__side-navigation': patch
5+
'@hypermod/mod-atlaskit__breadcrumbs': patch
6+
'@hypermod/mod-atlaskit__textfield': patch
7+
'@hypermod/mod-atlaskit__calendar': patch
8+
'@hypermod/mod-atlaskit__checkbox': patch
9+
'@hypermod/mod-atlaskit__textarea': patch
10+
'@hypermod/mod-atlaskit__spinner': patch
11+
'@hypermod/mod-emotion__monorepo': patch
12+
'@hypermod/mod-atlaskit__avatar': patch
13+
'@hypermod/mod-atlaskit__button': patch
14+
'@hypermod/mod-atlaskit__popper': patch
15+
'@hypermod/mod-atlaskit__toggle': patch
16+
'@hypermod/mod-atlaskit__popup': patch
17+
'@hypermod/mod-atlaskit__range': patch
18+
'@hypermod/mod-atlaskit__icon': patch
19+
'@hypermod/mod-atlaskit__menu': patch
20+
'@hypermod/mod-atlaskit__tag': patch
21+
'@hypermod/mod-memoize-one': patch
22+
'@hypermod/mod-javascript': patch
23+
'@hypermod/initializer': patch
24+
'@hypermod/mod-hypermod': patch
25+
'@hypermod/mod-react': patch
26+
'@hypermod/utils': patch
27+
'@hypermod/core': patch
28+
'@hypermod/cli': patch
29+
---
30+
31+
Bump jscodeshift to fix JSX redundant brackets error

community/@atlaskit__avatar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.7.0",
15-
"jscodeshift": "^17.1.2"
15+
"jscodeshift": "^17.3.0"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.27.0",

community/@atlaskit__avatar/src/18.0.0/__tests__/transform.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -333,9 +333,9 @@ describe('Update AvatarItem props', () => {
333333
334334
const App = () => {
335335
return (
336-
(<AvatarItem
336+
<AvatarItem
337337
isTruncationDisabled
338-
/>)
338+
/>
339339
);
340340
}
341341
`,
@@ -365,9 +365,9 @@ describe('Update AvatarItem props', () => {
365365
366366
const App = () => {
367367
return (
368-
(<AvatarItem
368+
<AvatarItem
369369
isTruncationDisabled={!value}
370-
/>)
370+
/>
371371
);
372372
}
373373
`,
@@ -399,9 +399,9 @@ describe('Update AvatarItem props', () => {
399399
400400
const App = () => {
401401
return (
402-
(<AvatarItem
402+
<AvatarItem
403403
isTruncationDisabled={!(foo && bar)}
404-
/>)
404+
/>
405405
);
406406
}
407407
`,

community/@atlaskit__breadcrumbs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.7.0",
15-
"jscodeshift": "^17.1.2"
15+
"jscodeshift": "^17.3.0"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.27.0",

community/@atlaskit__button/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.7.0",
15-
"jscodeshift": "^17.1.2"
15+
"jscodeshift": "^17.3.0"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.27.0",

community/@atlaskit__button/src/15.1.1/__tests__/transform.spec.ts

Lines changed: 35 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -138,11 +138,13 @@ describe('@atlaskit/button@15.1.1 transform', () => {
138138
import { StandardButton, LoadingButton, CustomThemeButton } from '@atlaskit/button';
139139
140140
function App() {
141-
return <>
142-
<StandardButton testId="my-testid">click me</StandardButton>
143-
<LoadingButton testId="my-testid">click me</LoadingButton>
144-
<CustomThemeButton testId="my-testid">click me</CustomThemeButton>
145-
</>;
141+
return (
142+
<>
143+
<StandardButton testId="my-testid">click me</StandardButton>
144+
<LoadingButton testId="my-testid">click me</LoadingButton>
145+
<CustomThemeButton testId="my-testid">click me</CustomThemeButton>
146+
</>
147+
);
146148
}
147149
`,
148150
});
@@ -154,22 +156,26 @@ describe('@atlaskit/button@15.1.1 transform', () => {
154156
import { StandardButton as SB, LoadingButton as LB, CustomThemeButton as CTB } from '@atlaskit/button';
155157
156158
function App() {
157-
return <>
158-
<SB data-testid="my-testid">click me</SB>
159-
<LB data-testid="my-testid">click me</LB>
160-
<CTB data-testid="my-testid">click me</CTB>
161-
</>;
159+
return (
160+
<>
161+
<SB data-testid="my-testid">click me</SB>
162+
<LB data-testid="my-testid">click me</LB>
163+
<CTB data-testid="my-testid">click me</CTB>
164+
</>
165+
);
162166
}
163167
`,
164168
expected: `
165169
import { StandardButton as SB, LoadingButton as LB, CustomThemeButton as CTB } from '@atlaskit/button';
166170
167171
function App() {
168-
return <>
169-
<SB testId="my-testid">click me</SB>
170-
<LB testId="my-testid">click me</LB>
171-
<CTB testId="my-testid">click me</CTB>
172-
</>;
172+
return (
173+
<>
174+
<SB testId="my-testid">click me</SB>
175+
<LB testId="my-testid">click me</LB>
176+
<CTB testId="my-testid">click me</CTB>
177+
</>
178+
);
173179
}
174180
`,
175181
});
@@ -204,23 +210,27 @@ describe('@atlaskit/button@15.1.1 transform', () => {
204210
import Something from '@atlaskit/foobar';
205211
206212
function App() {
207-
return <>
208-
<DSButton data-testid="my-testid">
209-
<Something data-testid="hello">click me</Something>
210-
</DSButton>
211-
</>;
213+
return (
214+
<>
215+
<DSButton data-testid="my-testid">
216+
<Something data-testid="hello">click me</Something>
217+
</DSButton>
218+
</>
219+
);
212220
}
213221
`,
214222
expected: `
215223
import DSButton from '@atlaskit/button';
216224
import Something from '@atlaskit/foobar';
217225
218226
function App() {
219-
return <>
220-
<DSButton testId="my-testid">
221-
<Something data-testid="hello">click me</Something>
222-
</DSButton>
223-
</>;
227+
return (
228+
<>
229+
<DSButton testId="my-testid">
230+
<Something data-testid="hello">click me</Something>
231+
</DSButton>
232+
</>
233+
);
224234
}
225235
`,
226236
});

community/@atlaskit__calendar/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
},
1313
"dependencies": {
1414
"@hypermod/utils": "^0.7.0",
15-
"jscodeshift": "^17.1.2"
15+
"jscodeshift": "^17.3.0"
1616
},
1717
"devDependencies": {
1818
"@hypermod/cli": "^0.27.0",

community/@atlaskit__calendar/src/11.0.0/__tests__/flatten-certain-inner-props.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
4646
import Calendar from '@atlaskit/calendar';
4747
const SimpleCalendar = () => {
4848
return (
49-
(<Calendar
49+
<Calendar
5050
innerProps={{
5151
style: {
5252
border: '1px solid red',
@@ -58,7 +58,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
5858
border: '1px solid red',
5959
display: 'inline-block',
6060
}}
61-
className={'abc'} />)
61+
className={'abc'} />
6262
);
6363
};"
6464
`);
@@ -89,11 +89,11 @@ describe('Flatten Inner Prop Style As Prop', () => {
8989
import Calendar from '@atlaskit/calendar';
9090
const SimpleCalendar = () => {
9191
return (
92-
(<Calendar
92+
<Calendar
9393
innerProps={{
9494
className: 'abc',
9595
}}
96-
className={'abc'} />)
96+
className={'abc'} />
9797
);
9898
};"
9999
`);
@@ -127,7 +127,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
127127
import Calendar from '@atlaskit/calendar';
128128
const SimpleCalendar = () => {
129129
return (
130-
(<Calendar
130+
<Calendar
131131
innerProps={{
132132
style: {
133133
border: '1px solid red',
@@ -137,7 +137,7 @@ describe('Flatten Inner Prop Style As Prop', () => {
137137
style={{
138138
border: '1px solid red',
139139
display: 'inline-block',
140-
}} />)
140+
}} />
141141
);
142142
};"
143143
`);

community/@atlaskit__calendar/src/11.0.0/__tests__/remove-inner-props.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,10 @@ describe('Remove innerProps', () => {
135135
136136
const SimpleCalendar = () => {
137137
return (
138-
(<Calendar
138+
<Calendar
139139
defaultDisabled={['2020-12-04']}
140140
defaultPreviouslySelected={['2020-12-06']}
141-
defaultSelected={['2020-12-08']} />)
141+
defaultSelected={['2020-12-08']} />
142142
);
143143
}"
144144
`);

community/@atlaskit__calendar/src/11.0.0/__tests__/transform.spec.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
4646
4747
const SimpleCalendar= () => {
4848
return (
49-
(<Calendar
49+
<Calendar
5050
defaultDisabled={['2020-12-04']}
5151
defaultPreviouslySelected={['2020-12-06']}
5252
defaultSelected={['2020-12-08']}
@@ -57,7 +57,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
5757
style={{
5858
border: '1px solid red',
5959
display: 'inline-block',
60-
}} />)
60+
}} />
6161
);
6262
}"
6363
`);
@@ -107,7 +107,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
107107
108108
const SimpleCalendar= () => {
109109
return (
110-
(<Calendar
110+
<Calendar
111111
defaultDisabled={['2020-12-04']}
112112
defaultPreviouslySelected={['2020-12-06']}
113113
defaultSelected={['2020-12-08']}
@@ -118,7 +118,7 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
118118
style={{
119119
border: '1px solid red',
120120
display: 'inline-block',
121-
}} />)
121+
}} />
122122
);
123123
}"
124124
`);
@@ -161,13 +161,13 @@ describe('@atlaskit/calendar@11.0.0 transform', () => {
161161
import Calendar from '@atlaskit/calendar';
162162
const SimpleCalendar= () => {
163163
return (
164-
(<Calendar
164+
<Calendar
165165
defaultDisabled={['2020-12-04']}
166166
defaultPreviouslySelected={['2020-12-06']}
167167
defaultSelected={['2020-12-08']}
168168
defaultMonth={12}
169169
defaultYear={2020}
170-
testId="the-calendar" />)
170+
testId="the-calendar" />
171171
);
172172
}"
173173
`);

0 commit comments

Comments
 (0)