Skip to content

Commit

Permalink
chore(deps-dev): bump @github/prettier-config from 0.0.4 to 0.0.6 (pr…
Browse files Browse the repository at this point in the history
…imer#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] <[email protected]>

* chore(project): format file

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Josh Black <[email protected]>
Co-authored-by: Josh Black <[email protected]>
  • Loading branch information
3 people authored Dec 5, 2022
1 parent fd9ab39 commit a0db832
Show file tree
Hide file tree
Showing 370 changed files with 2,987 additions and 2,983 deletions.
6 changes: 3 additions & 3 deletions babel-defines.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const shared = {
__DEV__: "process.env.NODE_ENV !== 'production'"
__DEV__: "process.env.NODE_ENV !== 'production'",
}

module.exports = {
Expand All @@ -8,6 +8,6 @@ module.exports = {
production: {
...shared,
__DEV__: 'false',
'process.env.NODE_ENV': "'production'"
}
'process.env.NODE_ENV': "'production'",
},
}
16 changes: 8 additions & 8 deletions babel.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const sharedPlugins = [
'add-react-displayname',
'babel-plugin-styled-components',
'@babel/plugin-proposal-nullish-coalescing-operator',
'@babel/plugin-proposal-optional-chaining'
'@babel/plugin-proposal-optional-chaining',
]

function makePresets(moduleValue) {
Expand All @@ -27,19 +27,19 @@ module.exports = {
: process.env.STORYBOOK
? []
: [
'transform-commonjs' // theme-preval is commonjs and needs to be transformed to esm
'transform-commonjs', // theme-preval is commonjs and needs to be transformed to esm
]),
...sharedPlugins,
replacementPlugin('development')
]
replacementPlugin('development'),
],
},
production: {
presets: makePresets(false),
plugins: [...sharedPlugins, replacementPlugin('production')]
plugins: [...sharedPlugins, replacementPlugin('production')],
},
test: {
presets: makePresets('commonjs'),
plugins: [...sharedPlugins, ['@babel/plugin-transform-modules-commonjs'], replacementPlugin('test')]
}
}
plugins: [...sharedPlugins, ['@babel/plugin-transform-modules-commonjs'], replacementPlugin('test')],
},
},
}
18 changes: 9 additions & 9 deletions codemods/__tests__/deprecateUtilityComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -42,7 +42,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -64,7 +64,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -86,7 +86,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -108,7 +108,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -130,7 +130,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -152,7 +152,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -174,7 +174,7 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)

defineInlineTest(
Expand All @@ -196,5 +196,5 @@ export default () => (
</Box>
)
`.trim(),
'deprecateUtilityComponents'
'deprecateUtilityComponents',
)
16 changes: 8 additions & 8 deletions codemods/__tests__/removeSystemProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default () => (
</Label>
)
`.trim(),
'removeSystemProps'
'removeSystemProps',
)

defineInlineTest(
Expand Down Expand Up @@ -54,7 +54,7 @@ const ClipboardCopy = ({value}) => (
)}
</Button>
)`.trim(),
'removeSystemProps'
'removeSystemProps',
)

defineInlineTest(
Expand Down Expand Up @@ -95,7 +95,7 @@ const link = (
Primer
</Link>
)`.trim(),
'removeSystemProps'
'removeSystemProps',
)

defineInlineTest(
Expand All @@ -119,7 +119,7 @@ export default () => (
</Label>
)
`.trim(),
'removeSystemProps'
'removeSystemProps',
)

defineInlineTest(
Expand All @@ -143,7 +143,7 @@ export default () => (
</Label>
)
`.trim(),
'removeSystemProps'
'removeSystemProps',
)

defineInlineTest(
Expand Down Expand Up @@ -171,7 +171,7 @@ export default () => (
</Label>
)
`.trim(),
'removeSystemProps'
'removeSystemProps',
)

defineInlineTest(
Expand All @@ -195,7 +195,7 @@ export default () => (
</Label>
)
`.trim(),
'removeSystemProps'
'removeSystemProps',
)

defineInlineTest(
Expand All @@ -221,5 +221,5 @@ export default () => (
</Label>
)
`.trim(),
'removeSystemProps'
'removeSystemProps',
)
2 changes: 1 addition & 1 deletion codemods/__tests__/v1.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export default () => (
</Box>
)
`.trim(),
'v1'
'v1',
)
2 changes: 1 addition & 1 deletion codemods/__tests__/v12.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ export default () => (
</Box>
)
`.trim(),
'v12'
'v12',
)
2 changes: 1 addition & 1 deletion codemods/__tests__/v2.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export default () => (
</Box>
)
`.trim(),
'v2'
'v2',
)
2 changes: 1 addition & 1 deletion codemods/__tests__/v3.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export default () => (
</Donut>
)
`.trim(),
'v3'
'v3',
)
6 changes: 3 additions & 3 deletions codemods/__tests__/v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export default () => (
</Flex>
)
`.trim(),
'v4'
'v4',
)

defineInlineTest(
Expand All @@ -42,7 +42,7 @@ export default () => (
</UnderlineNav>
)
`.trim(),
'v4'
'v4',
)

defineInlineTest(
Expand All @@ -64,5 +64,5 @@ export default () => (
</FilterList>
)
`.trim(),
'v4'
'v4',
)
32 changes: 16 additions & 16 deletions codemods/deprecateUtilityComponents.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,52 +8,52 @@ module.exports = (file, api) => {
Flex: {
identifier: 'Box',
attributes: {
display: 'flex'
}
display: 'flex',
},
},
Grid: {
identifier: 'Box',
attributes: {
display: 'grid'
}
display: 'grid',
},
},
Position: {
identifier: 'Box',
attributes: {}
attributes: {},
},
Absolute: {
identifier: 'Box',
attributes: {
position: 'absolute'
}
position: 'absolute',
},
},
Relative: {
identifier: 'Box',
attributes: {
position: 'relative'
}
position: 'relative',
},
},
Fixed: {
identifier: 'Box',
attributes: {
position: 'fixed'
}
position: 'fixed',
},
},
Sticky: {
identifier: 'Box',
attributes: {
position: 'sticky'
}
position: 'sticky',
},
},
BorderBox: {
identifier: 'Box',
attributes: {
borderWidth: '1px',
borderStyle: 'solid',
borderColor: 'border.default',
borderRadius: 2
}
}
borderRadius: 2,
},
},
})

return prettify(ast, file)
Expand Down
8 changes: 4 additions & 4 deletions codemods/lib/modifyProps.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ module.exports = (ast, j, moduleName, propsMap) => {
name: {
name: name => {
return name in importsByName
}
}
}
},
},
},
})
.forEach(el => {
j(el)
.find(j.JSXAttribute, {
name: name => {
return name.name in propsMap
}
},
})
.forEach(attr => {
const name = attr.value.name.name
Expand Down
6 changes: 3 additions & 3 deletions codemods/lib/prettify.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ module.exports = function prettify(ast, file) {
Object.assign(
{
parser: 'typescript',
filepath: file.path
filepath: file.path,
},
config
)
config,
),
)
}
Loading

0 comments on commit a0db832

Please sign in to comment.