Skip to content

Commit

Permalink
Fix Prettier 2.3.0 issues
Browse files Browse the repository at this point in the history
Followup after: adeira/universe#2364

See: https://prettier.io/blog/2021/05/09/2.3.0.html

adeira-source-id: d7ffdf62f7a920ebae8c69e2a2593a71e415c06f
  • Loading branch information
mrtnzlml authored and adeira-github-bot committed May 10, 2021
1 parent 01098e8 commit de9b794
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/StyleCollector.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,10 @@ class StyleCollector {
#styleBuffer: StyleBufferType = new Map();
#keyframes: Map<string, string> = new Map();

collect(baseStyleSheet: {
+[sheetName: string]: $FlowFixMe,
}): { +hashRegistry: HashRegistryType, +styleBuffer: StyleBufferType } {
collect(baseStyleSheet: { +[sheetName: string]: $FlowFixMe }): {
+hashRegistry: HashRegistryType,
+styleBuffer: StyleBufferType,
} {
const hashRegistry: HashRegistryType = new Map();

const traverse = (styleSheetName, styleSheetObject, styleBuffer, hashSeed = '') => {
Expand Down
7 changes: 4 additions & 3 deletions src/__tests__/fixtures/@supports.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ export default ({
'@supports (display: table-cell) and ((display: list-item) and (display:run-in))': {
color: 'red',
},
'@supports (transform-style: preserve) or (-moz-transform-style: preserve) or (-o-transform-style: preserve) or (-webkit-transform-style: preserve)': {
color: 'red',
},
'@supports (transform-style: preserve) or (-moz-transform-style: preserve) or (-o-transform-style: preserve) or (-webkit-transform-style: preserve)':
{
color: 'red',
},
},
}: SheetDefinitions);

0 comments on commit de9b794

Please sign in to comment.