Skip to content

Commit

Permalink
lint failed - npm run prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ikevin127 committed Oct 24, 2023
1 parent 5476b89 commit fd2050c
Show file tree
Hide file tree
Showing 12 changed files with 18 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ module.exports = {
},
],
curly: 'error',
"react/display-name": 'error',
'react/display-name': 'error',
},
},
{
Expand Down
4 changes: 2 additions & 2 deletions __mocks__/react-native-safe-area-context.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ function withSafeAreaInsets(WrappedComponent) {
forwardedRef={ref}
/>
));

WithSafeAreaInsetsWithRef.displayName = 'WithSafeAreaInsetsWithRef';

return WithSafeAreaInsetsWithRef;
}

Expand Down
5 changes: 1 addition & 4 deletions src/components/AddressSearch/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -509,7 +509,4 @@ const AddressSearchWithRef = React.forwardRef((props, ref) => (

AddressSearchWithRef.displayName = 'AddressSearchWithRef';

export default compose(
withNetwork(),
withLocalize,
)(AddressSearchWithRef);
export default compose(withNetwork(), withLocalize)(AddressSearchWithRef);
6 changes: 1 addition & 5 deletions src/components/Composer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -499,8 +499,4 @@ const ComposerWithRef = React.forwardRef((props, ref) => (

ComposerWithRef.displayName = 'ComposerWithRef';

export default compose(
withLocalize,
withWindowDimensions,
withNavigation,
)(ComposerWithRef);
export default compose(withLocalize, withWindowDimensions, withNavigation)(ComposerWithRef);
2 changes: 1 addition & 1 deletion src/components/withAnimatedRef.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default function withAnimatedRef(WrappedComponent) {
forwardedRef={ref}
/>
));

WithAnimatedRefWithRef.displayName = 'WithAnimatedRefWithRef';

return WithAnimatedRefWithRef;
Expand Down
2 changes: 1 addition & 1 deletion src/components/withNavigationFallback.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default function (WrappedComponent) {
forwardedRef={ref}
/>
));

WithNavigationFallbackWithRef.displayName = `WithNavigationFallbackWithRef`;

return WithNavigationFallbackWithRef;
Expand Down
2 changes: 1 addition & 1 deletion src/components/withTheme.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default function withTheme(WrappedComponent) {
forwardedRef={ref}
/>
));

WithThemeWithRef.displayName = `WithThemeWithRef`;

return WithThemeWithRef;
Expand Down
6 changes: 3 additions & 3 deletions src/components/withThemeStyles.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,17 +28,17 @@ export default function withThemeStyles(WrappedComponent) {
WithThemeStyles.defaultProps = {
forwardedRef: () => {},
};

const WithThemeStylesWithRef = React.forwardRef((props, ref) => (
<WithThemeStyles
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
forwardedRef={ref}
/>
));

WithThemeStylesWithRef.displayName = `WithThemeStylesWithRef`;

return WithThemeStylesWithRef;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/withToggleVisibilityView.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export default function (WrappedComponent) {
forwardedRef={ref}
/>
));

WithToggleVisibilityViewWithRef.displayName = `WithToggleVisibilityViewWithRef`;

return WithToggleVisibilityViewWithRef;
Expand Down
2 changes: 1 addition & 1 deletion src/pages/home/report/withReportOrNotFound.js
Original file line number Diff line number Diff line change
Expand Up @@ -123,5 +123,5 @@ export default function (shouldRequireReportID = true) {
key: ONYXKEYS.COLLECTION.POLICY,
},
})(WithReportOrNotFoundWithRef);
}
};
}
6 changes: 1 addition & 5 deletions src/pages/signin/SignInPageLayout/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,4 @@ const SignInPageLayoutWithRef = forwardRef((props, ref) => (

SignInPageLayoutWithRef.displayName = 'SignInPageLayoutWithRef';

export default compose(
withWindowDimensions,
withSafeAreaInsets,
withLocalize,
)(SignInPageLayoutWithRef);
export default compose(withWindowDimensions, withSafeAreaInsets, withLocalize)(SignInPageLayoutWithRef);
8 changes: 4 additions & 4 deletions tests/perf-test/ReportActionsList.perf-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ jest.mock('../../src/components/withNavigationFocus', () => (Component) => {
function WithNavigationFocus(props) {
return (
<Component
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
isFocused={false}
/>
// eslint-disable-next-line react/jsx-props-no-spreading
{...props}
isFocused={false}
/>
);
}

Expand Down

0 comments on commit fd2050c

Please sign in to comment.