Upgrade prettier before it will be removed forever

This commit is contained in:
SleepWalker
2020-05-20 19:35:52 +03:00
parent 39576c0480
commit 2d903f96fc
108 changed files with 422 additions and 547 deletions

View File

@@ -40,7 +40,7 @@ describe('ContactForm', () => {
type: 'TextArea',
name: 'message',
},
].forEach(el => {
].forEach((el) => {
it(`should have ${el.name} field`, () => {
expect(component.find(`${el.type}[name="${el.name}"]`), 'to satisfy', {
length: 1,
@@ -107,7 +107,7 @@ describe('ContactForm', () => {
wrapper = mount(
<IntlProvider locale="en" defaultLocale="en">
<ContactForm user={user} ref={el => (component = el!)} />
<ContactForm user={user} ref={(el) => (component = el!)} />
</IntlProvider>,
);
});
@@ -143,7 +143,7 @@ describe('ContactForm', () => {
// TODO: try to rewrite with unexpected-react
wrapper = mount(
<IntlProvider locale="en" defaultLocale="en">
<ContactForm user={user} ref={el => (component = el!)} />
<ContactForm user={user} ref={(el) => (component = el!)} />
</IntlProvider>,
);

View File

@@ -187,7 +187,7 @@ export class ContactForm extends React.Component<
lastEmail: this.form.value('email'),
}),
)
.catch(resp => {
.catch((resp) => {
if (resp.errors) {
this.form.setErrors(resp.errors);

View File

@@ -12,7 +12,7 @@ function ContactLink({ createContactPopup, ...props }: Props) {
<a
href="#"
data-e2e-button="feedbackPopup"
onClick={event => {
onClick={(event) => {
event.preventDefault();
createContactPopup();