Remove remaining @flow annotations
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint indent: 0 */
|
||||
/* eslint max-len: 0 */
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import merge from "lodash/object/merge";
|
||||
|
||||
export default function (dest?: Object, src?: Object): ?Object {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as t from "babel-types";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as parsers from "./parsers";
|
||||
import config from "./config";
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import slash from "slash";
|
||||
import * as util from "../../../util";
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import Plugin from "../plugin";
|
||||
import sortBy from "lodash/collection/sortBy";
|
||||
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
/* @flow */
|
||||
/* global BabelFileResult */
|
||||
/* global BabelFileMetadata */
|
||||
|
||||
import normalizeAst from "../helpers/normalize-ast";
|
||||
import Plugin from "./plugin";
|
||||
import File from "./file";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import escapeRegExp from "lodash/string/escapeRegExp";
|
||||
import startsWith from "lodash/string/startsWith";
|
||||
import isBoolean from "lodash/lang/isBoolean";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import type Position from "./position";
|
||||
import repeating from "repeating";
|
||||
import trimRight from "trim-right";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
export function File(node: Object) {
|
||||
this.print(node.program, node);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
export function ClassDeclaration(node: Object) {
|
||||
this.printJoin(node.decorators, node, { separator: "" });
|
||||
this.push("class");
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint max-len: 0 */
|
||||
|
||||
import isInteger from "is-integer";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint max-len: 0 */
|
||||
|
||||
import * as t from "babel-types";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
export function JSXAttribute(node: Object) {
|
||||
this.print(node.name, node);
|
||||
if (node.value) {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as t from "babel-types";
|
||||
|
||||
export function _params(node: Object) {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as t from "babel-types";
|
||||
|
||||
export function ImportSpecifier(node: Object) {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
export function TaggedTemplateExpression(node: Object) {
|
||||
this.print(node.tag, node);
|
||||
this.print(node.quasi, node);
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint max-len: 0 */
|
||||
/* eslint quotes: 0 */
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as t from "babel-types";
|
||||
|
||||
const PRECEDENCE = {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
/**
|
||||
* Track current position in code generation.
|
||||
*/
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import pull from "lodash/array/pull";
|
||||
import * as t from "babel-types";
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint max-len: 0 */
|
||||
|
||||
import * as util from "util";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import deepClone from "lodash/lang/cloneDeep";
|
||||
import sourceMapSupport from "source-map-support";
|
||||
import * as registerCache from "./cache";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint max-len: 0 */
|
||||
|
||||
import * as t from "../index";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint max-len: 0 */
|
||||
|
||||
import defineType, {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import defineType, { assertNodeType } from "./index";
|
||||
|
||||
defineType("AwaitExpression", {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import defineType from "./index";
|
||||
|
||||
defineType("AnyTypeAnnotation", {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import defineType, { assertNodeType, assertValueType, chain, assertEach } from "./index";
|
||||
|
||||
defineType("JSXAttribute", {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import defineType, { assertNodeType } from "./index";
|
||||
|
||||
defineType("Noop", {
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as t from "./index";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import toFastProperties from "to-fast-properties";
|
||||
import compact from "lodash/array/compact";
|
||||
import loClone from "lodash/lang/clone";
|
||||
|
||||
2
packages/babel-types/src/react.js
vendored
2
packages/babel-types/src/react.js
vendored
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as t from "./index";
|
||||
|
||||
export let isReactComponent = t.buildMatchMemberExpression("React.Component");
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import * as t from "./index";
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint indent: 0 */
|
||||
|
||||
import { getBindingIdentifiers } from "./retrievers";
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
// A second optional argument can be given to further configure
|
||||
// the parser process. These options are recognized:
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
/* @flow */
|
||||
/* eslint max-len: 0 */
|
||||
|
||||
/**
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import { reservedWords } from "../util/identifier";
|
||||
import { getOptions } from "../options";
|
||||
import Tokenizer from "../tokenizer";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
import { types as tt } from "../tokenizer/types";
|
||||
import Parser from "./index";
|
||||
import { lineBreak } from "../util/whitespace";
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
// The algorithm used to determine whether a regexp can appear at a
|
||||
// given point in the program is loosely based on sweet.js' approach.
|
||||
// See https://github.com/mozilla/sweet.js/wiki/design
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
/* @flow */
|
||||
|
||||
// Matches a whole line break (where CRLF is considered a single
|
||||
// line break). Used to count lines.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user