Skip to content

Commit

Permalink
fix flow issues (wish it was typescript)
Browse files Browse the repository at this point in the history
  • Loading branch information
FrederickEngelhardt committed May 1, 2021
1 parent aa81589 commit 078c879
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/rules/has-valid-accessibility-ignores-invert-colors.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,11 +32,16 @@ const checkParent = ({ openingElement, parent }) => {
return true;
};

type VerifyRNImageRes = {
enableLinting: boolean,
elementsToCheck: string[],
};

/**
* @description varifies that the Image asset is imported from 'react-native' otherwise exits linting
*/
const verifyReactNativeImage = (text: string): boolean => {
const res = {
const verifyReactNativeImage = (text: string): VerifyRNImageRes => {
const res: VerifyRNImageRes = {
enableLinting: true,
elementsToCheck: defaultInvertableComponents,
};
Expand Down

0 comments on commit 078c879

Please sign in to comment.