-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
upgrade tests/lint_cli_* to types-first
Summary: Makes tests compatible with Flow types-first, by * removing unnecessary exports that used to cause signature-verification errors * adding annotations when needed * converting `var` to `const` Reviewed By: gkz Differential Revision: D25609131 fbshipit-source-id: 701f7cc6b8235cfdb9d7cb6f2473d32d1d449179
- Loading branch information
1 parent
b746999
commit 0ff0dbf
Showing
33 changed files
with
74 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
[libs] | ||
|
||
[options] | ||
types_first=false | ||
|
||
[lints] | ||
all=off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
var vars = require("./cycle_B.js") | ||
const vars = require("./cycle_B.js") | ||
|
||
function f(x) { | ||
if (x); /* sketchy because of uses */ | ||
} | ||
|
||
var resNull = f(null); | ||
var resB = f(vars.b); | ||
const resNull: void = f(null); | ||
const resB: void = f(vars.b); | ||
|
||
module.exports = {resA: resNull, resB: resB}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
[libs] | ||
|
||
[options] | ||
types_first=false | ||
|
||
[lints] | ||
all=off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
[libs] | ||
|
||
[options] | ||
types_first=false | ||
|
||
[lints] | ||
all=error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
[libs] | ||
|
||
[options] | ||
types_first=false | ||
|
||
[lints] | ||
all=off |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
[libs] | ||
|
||
[options] | ||
types_first=false | ||
|
||
[lints] | ||
all=error |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ | |
[libs] | ||
|
||
[options] | ||
types_first=false | ||
|
||
[lints] | ||
all=error | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[options] | ||
types_first=false | ||
all=true | ||
|
||
[lints] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[options] | ||
types_first=false | ||
all=true | ||
|
||
[lints] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
[options] | ||
types_first=false | ||
all=true | ||
|
||
[lints] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
var a = require("./cycle_A.js"); | ||
const a = require("./cycle_A.js"); | ||
|
||
var b = {a: a, b: 0}; | ||
const b = {a: a, b: 0}; | ||
|
||
module.exports = b; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
var vars = require("./cycle_B.js") | ||
const vars = require("./cycle_B.js") | ||
|
||
function f(x) { | ||
if (x); /* sketchy because of uses */ | ||
} | ||
|
||
var resNull = f(null); | ||
var resB = f(vars.b); | ||
const resNull: void = f(null); | ||
const resB: void = f(vars.b); | ||
|
||
module.exports = {resA: resNull, resB: resB}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters