Skip to content

Commit

Permalink
README: update recommended preset documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
UltCombo committed Feb 11, 2018
1 parent 654c154 commit 1493a2f
Showing 1 changed file with 11 additions and 15 deletions.
26 changes: 11 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,6 @@ To enable this configuration use the extends property in your `.eslintrc` config
{
"extends": [
"plugin:flowtype/recommended"
],
"plugins": [
"flowtype"
]
}
```
Expand Down Expand Up @@ -2436,7 +2433,7 @@ type FooType = { a: number, c: number, b: string }
c: number,
b: string,
}
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
Expand All @@ -2445,7 +2442,7 @@ type FooType = { a: number, c: number, b: string }
c: number,
b: string,
}
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
Expand All @@ -2454,7 +2451,7 @@ type FooType = { a: number, c: number, b: string }
c: number,
b: string,
}
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
Expand All @@ -2463,7 +2460,7 @@ type FooType = { a: number, c: number, b: string }
c: ?number,
b: string,
}
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
Expand All @@ -2472,7 +2469,7 @@ type FooType = { a: number, c: number, b: string }
c: number,
b: (param: string) => number,
}
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
Expand All @@ -2481,7 +2478,7 @@ type FooType = { a: number, c: number, b: string }
c: number,
b: (param: string) => number,
}
// Message: Expected type annotations to be in ascending order. "b" should be before "c".
Expand All @@ -2490,7 +2487,7 @@ type FooType = { a: number, c: number, b: string }
a: number | string | boolean,
b: (param: string) => number,
}
// Message: Expected type annotations to be in ascending order. "a" should be before "c".
Expand All @@ -2503,7 +2500,7 @@ type FooType = { a: number, c: number, b: string }
a: number | string | boolean,
b: (param: string) => number,
}
// Message: Expected type annotations to be in ascending order. "x" should be before "z".
// Message: Expected type annotations to be in ascending order. "a" should be before "c".
Expand All @@ -2521,7 +2518,7 @@ type FooType = { a: number, c: number, b: string }
a: number | string | boolean,
b: (param: string) => number,
}
// Message: Expected type annotations to be in ascending order. "k" should be before "l".
// Message: Expected type annotations to be in ascending order. "x" should be before "z".
// Message: Expected type annotations to be in ascending order. "a" should be before "c".
Expand Down Expand Up @@ -2647,7 +2644,7 @@ The following patterns are considered problems:
{ a: string, b: number }) => {}
// Message: There must not be a line break after "foo" parameter type annotation colon.
(foo:
(foo:
{ a: string, b: number }) => {}
// Message: There must not be a line break after "foo" parameter type annotation colon.
Expand Down Expand Up @@ -3023,7 +3020,7 @@ The following patterns are not considered problems:
{ a: string, b: number }) => {}
// Options: ["always",{"allowLineBreak":true}]
(foo:
(foo:
{ a: string, b: number }) => {}
// Options: ["never"]
Expand Down Expand Up @@ -4128,4 +4125,3 @@ function x<Y: A.B.C>(i: Y) { i }; type A = {}; x()
**Deprecated** Babylon (the Babel parser) v6.10.0 fixes parsing of the invalid syntax this plugin warned against.
Checks for simple Flow syntax errors.

0 comments on commit 1493a2f

Please sign in to comment.