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 authored and zibs committed Sep 9, 2024
1 parent 90bfd60 commit 40b806f
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 40b806f

Please sign in to comment.