Skip to content

Commit

Permalink
Flow: Enable "sketchy-number" lint rule (#1834)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov committed Apr 27, 2019
1 parent fe1a035 commit dfcdce7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Expand Up @@ -14,7 +14,7 @@ sketchy-null-bool=off
sketchy-null-string=off
sketchy-null-number=error
sketchy-null-mixed=off
sketchy-number=off
sketchy-number=error
untyped-type-import=error
nonstrict-import=off
untyped-import=off
Expand Down
2 changes: 1 addition & 1 deletion src/validation/__tests__/PossibleTypeExtensions-test.js
Expand Up @@ -35,7 +35,7 @@ function extendingDifferentTypeKind(typeName, kind, l1, c1, l2, c2) {
const message = extendingDifferentTypeKindMessage(typeName, kind);
const locations = [{ line: l1, column: c1 }];

if (l2 && c2) {
if (l2 !== undefined && c2 !== undefined) {
locations.push({ line: l2, column: c2 });
}
return { message, locations };
Expand Down

0 comments on commit dfcdce7

Please sign in to comment.