Skip to content

Commit 1493a2f

Browse files
committed
README: update recommended preset documentation
1 parent 654c154 commit 1493a2f

File tree

1 file changed

+11
-15
lines changed

1 file changed

+11
-15
lines changed

README.md

Lines changed: 11 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,6 @@ To enable this configuration use the extends property in your `.eslintrc` config
151151
{
152152
"extends": [
153153
"plugin:flowtype/recommended"
154-
],
155-
"plugins": [
156-
"flowtype"
157154
]
158155
}
159156
```
@@ -2436,7 +2433,7 @@ type FooType = { a: number, c: number, b: string }
24362433
c: number,
24372434
b: string,
24382435
}
2439-
2436+
24402437
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
24412438
24422439
@@ -2445,7 +2442,7 @@ type FooType = { a: number, c: number, b: string }
24452442
c: number,
24462443
b: string,
24472444
}
2448-
2445+
24492446
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
24502447
24512448
@@ -2454,7 +2451,7 @@ type FooType = { a: number, c: number, b: string }
24542451
c: number,
24552452
b: string,
24562453
}
2457-
2454+
24582455
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
24592456
24602457
@@ -2463,7 +2460,7 @@ type FooType = { a: number, c: number, b: string }
24632460
c: ?number,
24642461
b: string,
24652462
}
2466-
2463+
24672464
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
24682465
24692466
@@ -2472,7 +2469,7 @@ type FooType = { a: number, c: number, b: string }
24722469
c: number,
24732470
b: (param: string) => number,
24742471
}
2475-
2472+
24762473
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
24772474
24782475
@@ -2481,7 +2478,7 @@ type FooType = { a: number, c: number, b: string }
24812478
c: number,
24822479
b: (param: string) => number,
24832480
}
2484-
2481+
24852482
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
24862483
24872484
@@ -2490,7 +2487,7 @@ type FooType = { a: number, c: number, b: string }
24902487
a: number | string | boolean,
24912488
b: (param: string) => number,
24922489
}
2493-
2490+
24942491
// Message: Expected type annotations to be in ascending order. "a" should be before "c".
24952492
24962493
@@ -2503,7 +2500,7 @@ type FooType = { a: number, c: number, b: string }
25032500
a: number | string | boolean,
25042501
b: (param: string) => number,
25052502
}
2506-
2503+
25072504
// Message: Expected type annotations to be in ascending order. "x" should be before "z".
25082505
// Message: Expected type annotations to be in ascending order. "a" should be before "c".
25092506
@@ -2521,7 +2518,7 @@ type FooType = { a: number, c: number, b: string }
25212518
a: number | string | boolean,
25222519
b: (param: string) => number,
25232520
}
2524-
2521+
25252522
// Message: Expected type annotations to be in ascending order. "k" should be before "l".
25262523
// Message: Expected type annotations to be in ascending order. "x" should be before "z".
25272524
// Message: Expected type annotations to be in ascending order. "a" should be before "c".
@@ -2647,7 +2644,7 @@ The following patterns are considered problems:
26472644
{ a: string, b: number }) => {}
26482645
// Message: There must not be a line break after "foo" parameter type annotation colon.
26492646
2650-
(foo:
2647+
(foo:
26512648
{ a: string, b: number }) => {}
26522649
// Message: There must not be a line break after "foo" parameter type annotation colon.
26532650
@@ -3023,7 +3020,7 @@ The following patterns are not considered problems:
30233020
{ a: string, b: number }) => {}
30243021
30253022
// Options: ["always",{"allowLineBreak":true}]
3026-
(foo:
3023+
(foo:
30273024
{ a: string, b: number }) => {}
30283025
30293026
// Options: ["never"]
@@ -4128,4 +4125,3 @@ function x<Y: A.B.C>(i: Y) { i }; type A = {}; x()
41284125
**Deprecated** Babylon (the Babel parser) v6.10.0 fixes parsing of the invalid syntax this plugin warned against.
41294126
41304127
Checks for simple Flow syntax errors.
4131-

0 commit comments

Comments
 (0)