Skip to content

Commit 496e1b4

Browse files
committed
chore: bump prettier
1 parent bcea5de commit 496e1b4

File tree

8 files changed

+18
-23
lines changed

8 files changed

+18
-23
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252
"formik": "^2.1.2",
5353
"jest": "^26.1.0",
5454
"lerna": "^3.18.3",
55-
"prettier": "^1.19.1",
55+
"prettier": "^2.0.5",
5656
"react": "^16.12.0",
5757
"react-dom": "^16.12.0",
5858
"react-test-renderer": "^16.12.0",

packages/formik-material-ui-lab/src/Autocomplete.tsx

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ export function fieldToAutocomplete<
5050
`value for ${field.name} is not an array, this can caused unexpected behaviour`
5151
);
5252
}
53-
5453
}
5554

5655
const {
@@ -68,10 +67,12 @@ export function fieldToAutocomplete<
6867
},
6968
onChange: onChange
7069
? onChange
71-
: (_event: React.ChangeEvent<{}>,
72-
value: Value<T, Multiple, DisableClearable, FreeSolo>,
73-
_reason: AutocompleteChangeReason,
74-
_details?: AutocompleteChangeDetails<T>) => {
70+
: (
71+
_event: React.ChangeEvent<{}>,
72+
value: Value<T, Multiple, DisableClearable, FreeSolo>,
73+
_reason: AutocompleteChangeReason,
74+
_details?: AutocompleteChangeDetails<T>
75+
) => {
7576
form.setFieldValue(field.name, value);
7677
},
7778
loading: form.isSubmitting,

stories/DatePicker.story.tsx

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,7 @@ interface Values {
1818

1919
const schema = yup.object().shape({
2020
date: yup.date().required(),
21-
futureDate: yup
22-
.date()
23-
.required()
24-
.min(subDays(new Date(), 1)),
21+
futureDate: yup.date().required().min(subDays(new Date(), 1)),
2522
});
2623

2724
export default () => (

stories/KitchenSink.story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export default () => (
3838
<Wrapper title="Kitchen Sink">
3939
<Formik<Values>
4040
initialValues={initialValues}
41-
validate={values => {
41+
validate={(values) => {
4242
const errors: Partial<Values> = {};
4343
if (!values.email) {
4444
errors.email = 'Required';

stories/SimpleFileUpload.story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ const schema = Yup.object().shape({
1818
.test(
1919
'file',
2020
'File must be less than 10MB',
21-
value => value == null || value.size < MAX_FILE_SIZE
21+
(value) => value == null || value.size < MAX_FILE_SIZE
2222
),
2323
});
2424

stories/TextField.story.tsx

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,7 @@ interface Values {
3232

3333
const schema = yup.object().shape({
3434
user: yup.object().shape({
35-
email: yup
36-
.string()
37-
.email()
38-
.required(),
35+
email: yup.string().email().required(),
3936
}),
4037
password: yup.string().required(),
4138
select: yup.mixed().required(),
@@ -79,7 +76,7 @@ const UpperCasingTextField = (props: TextFieldProps) => {
7976
return (
8077
<MuiTextField
8178
{...fieldToTextField(props)}
82-
onChange={event => {
79+
onChange={(event) => {
8380
const { value } = event.target;
8481

8582
const { form, field } = props;
@@ -160,7 +157,7 @@ export default withStyles(styles)(({ classes }: WithStyles<typeof styles>) => (
160157
helperText="Please select Range"
161158
margin="normal"
162159
>
163-
{ranges.map(option => (
160+
{ranges.map((option) => (
164161
<MenuItem key={option.value} value={option.value}>
165162
{option.label}
166163
</MenuItem>

stories/lab/Autocomplete.story.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ const top100Films: Movie[] = [
131131
{ title: 'Monty Python and the Holy Grail', year: 1975 },
132132
];
133133

134-
const groupedOptions = top100Films.map(option => {
134+
const groupedOptions = top100Films.map((option) => {
135135
const firstLetter = option.title[0].toUpperCase();
136136
return {
137137
firstLetter: /[0-9]/.test(firstLetter) ? '0-9' : firstLetter,

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10814,10 +10814,10 @@ preserve@^0.2.0:
1081410814
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"
1081510815
integrity sha1-gV7R9uvGWSb4ZbMQwHE7yzMVzks=
1081610816

10817-
prettier@^1.19.1:
10818-
version "1.19.1"
10819-
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.19.1.tgz#f7d7f5ff8a9cd872a7be4ca142095956a60797cb"
10820-
integrity sha512-s7PoyDv/II1ObgQunCbB9PdLmUcBZcnWOcxDh7O0N/UwDEsHyqkW+Qh28jW+mVuCdx7gLB0BotYI1Y6uI9iyew==
10817+
prettier@^2.0.5:
10818+
version "2.0.5"
10819+
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.0.5.tgz#d6d56282455243f2f92cc1716692c08aa31522d4"
10820+
integrity sha512-7PtVymN48hGcO4fGjybyBSIWDsLU4H4XlvOHfq91pz9kkGlonzwTfYkaIEwiRg/dAJF9YlbsduBAgtYLi+8cFg==
1082110821

1082210822
pretty-error@^2.1.1:
1082310823
version "2.1.1"

0 commit comments

Comments
 (0)