Skip to content

Commit a0db832

Browse files
chore(deps-dev): bump @github/prettier-config from 0.0.4 to 0.0.6 (#2642)
* chore(deps-dev): bump @github/prettier-config from 0.0.4 to 0.0.6 Bumps [@github/prettier-config](https://github.com/github/prettier-config) from 0.0.4 to 0.0.6. - [Release notes](https://github.com/github/prettier-config/releases) - [Commits](github/prettier-config@v0.0.4...v0.0.6) --- updated-dependencies: - dependency-name: "@github/prettier-config" dependency-type: direct:development update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> * chore(project): format file Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Josh Black <josh@josh.black> Co-authored-by: Josh Black <joshblack@github.com>
1 parent fd9ab39 commit a0db832

File tree

370 files changed

+2987
-2983
lines changed

Some content is hidden

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

370 files changed

+2987
-2983
lines changed

babel-defines.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const shared = {
2-
__DEV__: "process.env.NODE_ENV !== 'production'"
2+
__DEV__: "process.env.NODE_ENV !== 'production'",
33
}
44

55
module.exports = {
@@ -8,6 +8,6 @@ module.exports = {
88
production: {
99
...shared,
1010
__DEV__: 'false',
11-
'process.env.NODE_ENV': "'production'"
12-
}
11+
'process.env.NODE_ENV': "'production'",
12+
},
1313
}

babel.config.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const sharedPlugins = [
1010
'add-react-displayname',
1111
'babel-plugin-styled-components',
1212
'@babel/plugin-proposal-nullish-coalescing-operator',
13-
'@babel/plugin-proposal-optional-chaining'
13+
'@babel/plugin-proposal-optional-chaining',
1414
]
1515

1616
function makePresets(moduleValue) {
@@ -27,19 +27,19 @@ module.exports = {
2727
: process.env.STORYBOOK
2828
? []
2929
: [
30-
'transform-commonjs' // theme-preval is commonjs and needs to be transformed to esm
30+
'transform-commonjs', // theme-preval is commonjs and needs to be transformed to esm
3131
]),
3232
...sharedPlugins,
33-
replacementPlugin('development')
34-
]
33+
replacementPlugin('development'),
34+
],
3535
},
3636
production: {
3737
presets: makePresets(false),
38-
plugins: [...sharedPlugins, replacementPlugin('production')]
38+
plugins: [...sharedPlugins, replacementPlugin('production')],
3939
},
4040
test: {
4141
presets: makePresets('commonjs'),
42-
plugins: [...sharedPlugins, ['@babel/plugin-transform-modules-commonjs'], replacementPlugin('test')]
43-
}
44-
}
42+
plugins: [...sharedPlugins, ['@babel/plugin-transform-modules-commonjs'], replacementPlugin('test')],
43+
},
44+
},
4545
}

codemods/__tests__/deprecateUtilityComponents.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default () => (
2020
</Box>
2121
)
2222
`.trim(),
23-
'deprecateUtilityComponents'
23+
'deprecateUtilityComponents',
2424
)
2525

2626
defineInlineTest(
@@ -42,7 +42,7 @@ export default () => (
4242
</Box>
4343
)
4444
`.trim(),
45-
'deprecateUtilityComponents'
45+
'deprecateUtilityComponents',
4646
)
4747

4848
defineInlineTest(
@@ -64,7 +64,7 @@ export default () => (
6464
</Box>
6565
)
6666
`.trim(),
67-
'deprecateUtilityComponents'
67+
'deprecateUtilityComponents',
6868
)
6969

7070
defineInlineTest(
@@ -86,7 +86,7 @@ export default () => (
8686
</Box>
8787
)
8888
`.trim(),
89-
'deprecateUtilityComponents'
89+
'deprecateUtilityComponents',
9090
)
9191

9292
defineInlineTest(
@@ -108,7 +108,7 @@ export default () => (
108108
</Box>
109109
)
110110
`.trim(),
111-
'deprecateUtilityComponents'
111+
'deprecateUtilityComponents',
112112
)
113113

114114
defineInlineTest(
@@ -130,7 +130,7 @@ export default () => (
130130
</Box>
131131
)
132132
`.trim(),
133-
'deprecateUtilityComponents'
133+
'deprecateUtilityComponents',
134134
)
135135

136136
defineInlineTest(
@@ -152,7 +152,7 @@ export default () => (
152152
</Box>
153153
)
154154
`.trim(),
155-
'deprecateUtilityComponents'
155+
'deprecateUtilityComponents',
156156
)
157157

158158
defineInlineTest(
@@ -174,7 +174,7 @@ export default () => (
174174
</Box>
175175
)
176176
`.trim(),
177-
'deprecateUtilityComponents'
177+
'deprecateUtilityComponents',
178178
)
179179

180180
defineInlineTest(
@@ -196,5 +196,5 @@ export default () => (
196196
</Box>
197197
)
198198
`.trim(),
199-
'deprecateUtilityComponents'
199+
'deprecateUtilityComponents',
200200
)

codemods/__tests__/removeSystemProps.js

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export default () => (
2222
</Label>
2323
)
2424
`.trim(),
25-
'removeSystemProps'
25+
'removeSystemProps',
2626
)
2727

2828
defineInlineTest(
@@ -54,7 +54,7 @@ const ClipboardCopy = ({value}) => (
5454
)}
5555
</Button>
5656
)`.trim(),
57-
'removeSystemProps'
57+
'removeSystemProps',
5858
)
5959

6060
defineInlineTest(
@@ -95,7 +95,7 @@ const link = (
9595
Primer
9696
</Link>
9797
)`.trim(),
98-
'removeSystemProps'
98+
'removeSystemProps',
9999
)
100100

101101
defineInlineTest(
@@ -119,7 +119,7 @@ export default () => (
119119
</Label>
120120
)
121121
`.trim(),
122-
'removeSystemProps'
122+
'removeSystemProps',
123123
)
124124

125125
defineInlineTest(
@@ -143,7 +143,7 @@ export default () => (
143143
</Label>
144144
)
145145
`.trim(),
146-
'removeSystemProps'
146+
'removeSystemProps',
147147
)
148148

149149
defineInlineTest(
@@ -171,7 +171,7 @@ export default () => (
171171
</Label>
172172
)
173173
`.trim(),
174-
'removeSystemProps'
174+
'removeSystemProps',
175175
)
176176

177177
defineInlineTest(
@@ -195,7 +195,7 @@ export default () => (
195195
</Label>
196196
)
197197
`.trim(),
198-
'removeSystemProps'
198+
'removeSystemProps',
199199
)
200200

201201
defineInlineTest(
@@ -221,5 +221,5 @@ export default () => (
221221
</Label>
222222
)
223223
`.trim(),
224-
'removeSystemProps'
224+
'removeSystemProps',
225225
)

codemods/__tests__/v1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export default () => (
1919
</Box>
2020
)
2121
`.trim(),
22-
'v1'
22+
'v1',
2323
)

codemods/__tests__/v12.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,5 +19,5 @@ export default () => (
1919
</Box>
2020
)
2121
`.trim(),
22-
'v12'
22+
'v12',
2323
)

codemods/__tests__/v2.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export default () => (
2020
</Box>
2121
)
2222
`.trim(),
23-
'v2'
23+
'v2',
2424
)

codemods/__tests__/v3.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ export default () => (
2020
</Donut>
2121
)
2222
`.trim(),
23-
'v3'
23+
'v3',
2424
)

codemods/__tests__/v4.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export default () => (
2020
</Flex>
2121
)
2222
`.trim(),
23-
'v4'
23+
'v4',
2424
)
2525

2626
defineInlineTest(
@@ -42,7 +42,7 @@ export default () => (
4242
</UnderlineNav>
4343
)
4444
`.trim(),
45-
'v4'
45+
'v4',
4646
)
4747

4848
defineInlineTest(
@@ -64,5 +64,5 @@ export default () => (
6464
</FilterList>
6565
)
6666
`.trim(),
67-
'v4'
67+
'v4',
6868
)

codemods/deprecateUtilityComponents.js

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,52 +8,52 @@ module.exports = (file, api) => {
88
Flex: {
99
identifier: 'Box',
1010
attributes: {
11-
display: 'flex'
12-
}
11+
display: 'flex',
12+
},
1313
},
1414
Grid: {
1515
identifier: 'Box',
1616
attributes: {
17-
display: 'grid'
18-
}
17+
display: 'grid',
18+
},
1919
},
2020
Position: {
2121
identifier: 'Box',
22-
attributes: {}
22+
attributes: {},
2323
},
2424
Absolute: {
2525
identifier: 'Box',
2626
attributes: {
27-
position: 'absolute'
28-
}
27+
position: 'absolute',
28+
},
2929
},
3030
Relative: {
3131
identifier: 'Box',
3232
attributes: {
33-
position: 'relative'
34-
}
33+
position: 'relative',
34+
},
3535
},
3636
Fixed: {
3737
identifier: 'Box',
3838
attributes: {
39-
position: 'fixed'
40-
}
39+
position: 'fixed',
40+
},
4141
},
4242
Sticky: {
4343
identifier: 'Box',
4444
attributes: {
45-
position: 'sticky'
46-
}
45+
position: 'sticky',
46+
},
4747
},
4848
BorderBox: {
4949
identifier: 'Box',
5050
attributes: {
5151
borderWidth: '1px',
5252
borderStyle: 'solid',
5353
borderColor: 'border.default',
54-
borderRadius: 2
55-
}
56-
}
54+
borderRadius: 2,
55+
},
56+
},
5757
})
5858

5959
return prettify(ast, file)

0 commit comments

Comments
 (0)