Skip to content

Commit

Permalink
fix: lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
nmn committed Sep 10, 2024
1 parent f28431f commit 5b10b20
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion packages/rollup-plugin/flow_modules/rollup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ export type SequentialPluginHooks =
| 'transform';

export type ParallelPluginHooks = Exclude<
$Keys<FunctionPluginHooks> | $Keys<AddonHooks>,
$Keys<FunctionPluginHooks> | AddonHooks,
FirstPluginHooks | SequentialPluginHooks,
>;

Expand Down
5 changes: 3 additions & 2 deletions packages/shared/src/physical-rtl/generate-rtl.js
Original file line number Diff line number Diff line change
Expand Up @@ -181,8 +181,9 @@ const propertyToRTL: $ReadOnly<{
export default function generateRTL([key, value]: $ReadOnly<
[string, string],
>): ?$ReadOnly<[string, string]> {
if (propertyToRTL[key]) {
return propertyToRTL[key]([key, value]);
const toRTLForKey = propertyToRTL[key];
if (toRTLForKey) {
return toRTLForKey([key, value]);
}
return null;
}
2 changes: 1 addition & 1 deletion packages/shared/src/utils/property-priorities.js
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ longHandLogical.add('touch-action');
// ':active': 170,
// };

export const PSEUDO_CLASS_PRIORITIES: $ReadOnly<{ [string]: number }> = {
export const PSEUDO_CLASS_PRIORITIES: $ReadOnly<{ [string]: ?number }> = {
':is': 40,
':where': 40,
':not': 40,
Expand Down

0 comments on commit 5b10b20

Please sign in to comment.