Skip to content
This repository was archived by the owner on Mar 7, 2019. It is now read-only.

Commit d9af269

Browse files
Upgrade eslint-plugin-flowtype to 2.36.0
1 parent 5da3573 commit d9af269

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

environments/flow/recommended.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ module.exports = {
2828
// Flow file declaration (or a @noflow annotation).
2929
'flowtype/no-types-missing-file-annotation': 'error',
3030

31+
// This rule ignores type cast expressions, but otherwise behaves the same as ESLint's built-in
32+
// rule.
33+
'flowtype/no-unused-expressions': ['error', {
34+
allowShortCircuit: true,
35+
allowTernary: true,
36+
}],
37+
3138
// Warns against weak type annotations any, Object and Function. These types can cause flow
3239
// to silently skip over portions of your code, which would have otherwise caused type errors.
3340
'flowtype/no-weak-types': ['warn', { any: true }],

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"Vladimir Vanek <[email protected]>"
1616
],
1717
"dependencies": {
18-
"eslint-plugin-flowtype": "^2.35.0",
18+
"eslint-plugin-flowtype": "^2.36.0",
1919
"eslint-plugin-import": "^2.7.0",
2020
"eslint-plugin-jsx-a11y": "^6.0.2",
2121
"eslint-plugin-react": "^7.4.0"

0 commit comments

Comments
 (0)