Internal: temporarily remove flow types

- Will need to investigate the issue regarding eslint/babel-eslint.
This commit is contained in:
Henry Zhu
2016-01-17 17:14:55 -05:00
parent d11bcae496
commit 51dfd2237e
2 changed files with 4 additions and 4 deletions

View File

@@ -513,7 +513,7 @@ export default class File extends Store {
}
}
makeResult({ code, map, ast, ignored }: BabelFileResult): BabelFileResult {
makeResult({ code, map, ast, ignored } /*: BabelFileResult */): BabelFileResult {
let result = {
metadata: null,
options: this.opts,

View File

@@ -28,14 +28,14 @@ export let ReferencedMemberExpression = {
export let BindingIdentifier = {
types: ["Identifier"],
checkPath({ node, parent }: NodePath): boolean {
checkPath({ node, parent } /*: NodePath */): boolean {
return t.isIdentifier(node) && t.isBinding(node, parent);
}
};
export let Statement = {
types: ["Statement"],
checkPath({ node, parent }: NodePath): boolean {
checkPath({ node, parent } /*: NodePath */): boolean {
if (t.isStatement(node)) {
if (t.isVariableDeclaration(node)) {
if (t.isForXStatement(parent, { left: node })) return false;
@@ -106,7 +106,7 @@ export let Pure = {
export let Flow = {
types: ["Flow", "ImportDeclaration", "ExportDeclaration"],
checkPath({ node }: NodePath): boolean {
checkPath({ node } /*: NodePath */): boolean {
if (t.isFlow(node)) {
return true;
} else if (t.isImportDeclaration(node)) {