Skip to content

Commit dfcdce7

Browse files
Flow: Enable "sketchy-number" lint rule (#1834)
1 parent fe1a035 commit dfcdce7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ sketchy-null-bool=off
1414
sketchy-null-string=off
1515
sketchy-null-number=error
1616
sketchy-null-mixed=off
17-
sketchy-number=off
17+
sketchy-number=error
1818
untyped-type-import=error
1919
nonstrict-import=off
2020
untyped-import=off

src/validation/__tests__/PossibleTypeExtensions-test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function extendingDifferentTypeKind(typeName, kind, l1, c1, l2, c2) {
3535
const message = extendingDifferentTypeKindMessage(typeName, kind);
3636
const locations = [{ line: l1, column: c1 }];
3737

38-
if (l2 && c2) {
38+
if (l2 !== undefined && c2 !== undefined) {
3939
locations.push({ line: l2, column: c2 });
4040
}
4141
return { message, locations };

0 commit comments

Comments
 (0)