Skip to content

Commit

Permalink
Manually add back eslint-ignore comments for props spreading
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Jun 13, 2023
1 parent b8aeec0 commit 053e8a2
Show file tree
Hide file tree
Showing 19 changed files with 19 additions and 16 deletions.
1 change: 1 addition & 0 deletions src/components/AutoCompleteSuggestions/index.native.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import BaseAutoCompleteSuggestions from './BaseAutoCompleteSuggestions';
import {propTypes} from './autoCompleteSuggestionsPropTypes';

function AutoCompleteSuggestions(props) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <BaseAutoCompleteSuggestions {...props} />;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import htmlRendererPropTypes from '../htmlRendererPropTypes';
import BasePreRenderer from './BasePreRenderer';

function PreRenderer(props) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <BasePreRenderer {...props} />;
}

Expand Down
1 change: 1 addition & 0 deletions src/components/KeyboardAvoidingView/index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import React from 'react';
import {KeyboardAvoidingView as KeyboardAvoidingViewComponent} from 'react-native';

function KeyboardAvoidingView(props) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <KeyboardAvoidingViewComponent {...props} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/components/SignInPageForm/index.native.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import FormElement from '../FormElement';

// eslint-disable-next-line react/jsx-props-no-spreading
function Form(props) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <FormElement {...props} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/iou/IOURequestPage.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import React from 'react';
import MoneyRequestModal from './MoneyRequestModal';

// eslint-disable-next-line react/jsx-props-no-spreading
function IOURequestPage(props) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <MoneyRequestModal {...props} />;
}
IOURequestPage.displayName = 'IOURequestPage';
Expand Down
2 changes: 1 addition & 1 deletion src/stories/Banner.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: Banner,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <Banner {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/Button.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: Button,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <Button {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/ButtonWithDropdownMenu.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: ButtonWithDropdownMenu,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <ButtonWithDropdownMenu {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/Checkbox.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ export default {
component: Checkbox,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <Checkbox {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/CheckboxWithLabel.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const story = {
component: CheckboxWithLabel,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <CheckboxWithLabel {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/Datepicker.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export default {
},
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <DatePicker {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/FormAlertWithSubmitButton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: FormAlertWithSubmitButton,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <FormAlertWithSubmitButton {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/Header.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: Header,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <Header {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/HeaderWithBackButton.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: HeaderWithBackButton,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <HeaderWithBackButton {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/InlineSystemMessage.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: InlineSystemMessage,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <InlineSystemMessage {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/MagicCodeInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: MagicCodeInput,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <MagicCodeInput {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/MenuItem.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ const story = {
component: MenuItem,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <MenuItem {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/SubscriptAvatar.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ export default {
},
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <SubscriptAvatar {...args} />;
}

Expand Down
2 changes: 1 addition & 1 deletion src/stories/TextInput.stories.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const story = {
component: TextInput,
};

// eslint-disable-next-line react/jsx-props-no-spreading
function Template(args) {
// eslint-disable-next-line react/jsx-props-no-spreading
return <TextInput {...args} />;
}

Expand Down

0 comments on commit 053e8a2

Please sign in to comment.