From acee429ebf681c7ff4ffeb5463a9779f2f72ab88 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hu=C3=A1ng=20J=C3=B9nli=C3=A0ng?= Date: Sun, 24 Jul 2022 03:08:17 -0400 Subject: [PATCH] chore: remove flow check scripts (#14785) --- .flowconfig | 38 --- .github/workflows/ci.yml | 4 +- .gitpod.yml | 1 - Makefile | 8 +- babel.config.js | 4 +- eslint/babel-eslint-config-internal/index.js | 6 +- .../babel-eslint-config-internal/package.json | 3 +- eslint/babel-eslint-plugin/src/rules/semi.cjs | 2 +- lib/babel-packages.js.flow | 304 ------------------ lib/babel-polyfills.js.flow | 9 - lib/package-json.js.flow | 4 - lib/preset-modules.js.flow | 18 -- lib/third-party-libs.js.flow | 88 ----- package.json | 3 - .../babel-core/src/config/files/import.cjs | 2 +- .../babel-parser/src/plugins/flow/index.ts | 2 +- .../src/plugins/typescript/index.ts | 7 +- yarn.lock | 72 +---- 18 files changed, 13 insertions(+), 562 deletions(-) delete mode 100644 .flowconfig delete mode 100644 lib/babel-packages.js.flow delete mode 100644 lib/babel-polyfills.js.flow delete mode 100644 lib/package-json.js.flow delete mode 100644 lib/preset-modules.js.flow delete mode 100644 lib/third-party-libs.js.flow diff --git a/.flowconfig b/.flowconfig deleted file mode 100644 index 52db881e0d2e..000000000000 --- a/.flowconfig +++ /dev/null @@ -1,38 +0,0 @@ -[ignore] -/build/.* -/packages/.*/lib -/packages/.*/test -/codemods/.*/lib -/codemods/.*/test -/node_modules/module-deps/ -/node_modules/webpack-cli/ -/test/runtime-integration/ - -[include] -packages/*/src -codemods/*/src - -[libs] -lib/file.js -lib/parser.js -lib/third-party-libs.js.flow -lib/preset-modules.js.flow -lib/babel-polyfills.js.flow -packages/babel-types/lib/index.js.flow -lib/babel-packages.js.flow -lib/package-json.js.flow - -[options] -include_warnings=true -suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe -suppress_comment= \\(.\\|\n\\)*\\$FlowIssue -suppress_comment= \\(.\\|\n\\)*\\$FlowIgnore -suppress_type=$FlowFixMe -suppress_type=$FlowSubtype -esproposal.export_star_as=enable -esproposal.optional_chaining=enable -esproposal.nullish_coalescing=enable -module.name_mapper='^@babel/\([a-zA-Z0-9_-]+\)$' -> '/packages/babel-\1/src/index' -; Todo: can not make it works, 🤷‍♂️ -; module.name_mapper='^@babel/plugin-syntax-import-meta$' -> '/packages/babel-standalone/node_modules/@babel/plugin-syntax-import-meta/lib/index' -module.ignore_non_literal_requires=true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eae8b08f7ff8..539ce7cc321b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -171,7 +171,7 @@ jobs: with: name: babel-artifact - name: Lint - run: make -j tscheck flowcheck-ci lint-ci + run: make -j tscheck lint-ci test: name: Test on Node.js # GitHub will add ${{ matrix.node-version }} to this title @@ -244,7 +244,7 @@ jobs: BABEL_8_BREAKING: true STRIP_BABEL_8_FLAG: true - name: Lint - run: make -j tscheck flowcheck-ci lint-ci + run: make -j tscheck lint-ci env: BABEL_ENV: test BABEL_8_BREAKING: true diff --git a/.gitpod.yml b/.gitpod.yml index ffc1d77a0029..caa77040cea3 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -37,4 +37,3 @@ vscode: extensions: - dbaeumer.vscode-eslint@2.1.5:9Wg0Glx/TwD8ElFBg+FKcQ== - esbenp.prettier-vscode@5.0.0:qca7d0cHbKkrkb5rvNlpcg== - - flowtype.flow-for-vscode@1.5.0:AwOT6wgHTF43loZQCAUMLA== diff --git a/Makefile b/Makefile index f7cf8c55167c..85fc59a6b4f0 100644 --- a/Makefile +++ b/Makefile @@ -74,18 +74,12 @@ build-plugin-transform-runtime-dist: watch: build-no-bundle BABEL_ENV=development $(YARN) gulp watch -flowcheck-ci: - $(MAKE) flow - -code-quality: tscheck flow lint +code-quality: tscheck lint tscheck: generate-tsconfig rm -rf dts $(YARN) tsc -b . -flow: build-flow-typings - $(YARN) flow check --strip-root - lint-ci: lint check-compat-data-ci check-compat-data-ci: diff --git a/babel.config.js b/babel.config.js index 474d538db65d..ed5a370538d0 100644 --- a/babel.config.js +++ b/babel.config.js @@ -172,6 +172,8 @@ module.exports = function (api) { .filter(Boolean) .map(normalize), presets: [ + // presets are applied from right to left + ["@babel/env", envOpts], [ "@babel/preset-typescript", { @@ -180,8 +182,6 @@ module.exports = function (api) { optimizeConstEnums: true, }, ], - ["@babel/env", envOpts], - ["@babel/preset-flow", { allowDeclareFields: true }], ], plugins: [ ["@babel/proposal-object-rest-spread", { useBuiltIns: true }], diff --git a/eslint/babel-eslint-config-internal/index.js b/eslint/babel-eslint-config-internal/index.js index b0c7c1b215ed..4ceabe093bca 100644 --- a/eslint/babel-eslint-config-internal/index.js +++ b/eslint/babel-eslint-config-internal/index.js @@ -3,9 +3,7 @@ module.exports = { parser: "@babel/eslint-parser/experimental-worker", extends: "eslint:recommended", - plugins: ["flowtype"], parserOptions: { - ecmaVersion: 2020, sourceType: "module", }, globals: { @@ -15,7 +13,7 @@ module.exports = { }, env: { node: true, - es2020: true, + es2022: true, browser: true, }, rules: { @@ -27,7 +25,5 @@ module.exports = { "no-process-exit": "error", "no-var": "error", "prefer-const": "error", - "flowtype/define-flow-type": "warn", - "flowtype/use-flow-type": "warn", }, }; diff --git a/eslint/babel-eslint-config-internal/package.json b/eslint/babel-eslint-config-internal/package.json index a3fc090503fd..05254ef058a0 100644 --- a/eslint/babel-eslint-config-internal/package.json +++ b/eslint/babel-eslint-config-internal/package.json @@ -10,7 +10,6 @@ "./package.json": "./package.json" }, "peerDependencies": { - "@babel/eslint-parser": "^7.16.0", - "eslint-plugin-flowtype": "^8.0.3" + "@babel/eslint-parser": "^7.16.0" } } diff --git a/eslint/babel-eslint-plugin/src/rules/semi.cjs b/eslint/babel-eslint-plugin/src/rules/semi.cjs index 5d61010de535..1a0d6df0a016 100644 --- a/eslint/babel-eslint-plugin/src/rules/semi.cjs +++ b/eslint/babel-eslint-plugin/src/rules/semi.cjs @@ -47,7 +47,7 @@ function isOneLinerBlock(context, node) { ); } -function report(context, node, missing?) { +function report(context, node, missing) { const lastToken = context.getSourceCode().getLastToken(node); let message, diff --git a/lib/babel-packages.js.flow b/lib/babel-packages.js.flow deleted file mode 100644 index a4818eefc624..000000000000 --- a/lib/babel-packages.js.flow +++ /dev/null @@ -1,304 +0,0 @@ -declare module "@babel/template" { - declare type PublicOpts = { - placeholderWhitelist?: ?Set, - placeholderPattern?: ?(RegExp | false), - preserveComments?: ?boolean, - syntacticPlaceholders?: ?boolean, - }; - - declare type PublicReplacements = { [string]: mixed } | Array; - - declare type TemplateBuilder = { - ast: { - (tpl: string, opts: ?PublicOpts): T, - (tpl: Array, ...args: Array): T, - }, - (opts: PublicOpts): TemplateBuilder, - (tpl: string, opts: ?PublicOpts): (?PublicReplacements) => T, - (tpl: Array, ...args: Array): (?PublicReplacements) => T, - }; - - declare type Smart = TemplateBuilder< - Array | BabelNodeStatement - >; - declare type Statement = TemplateBuilder; - declare type Statements = TemplateBuilder>; - declare type Expression = TemplateBuilder; - declare type Program = TemplateBuilder; - - declare export default Smart & { - smart: Smart, - statement: Statement, - statements: Statements, - expression: Expression, - program: Program, - }; -} - -declare module "@babel/helper-optimise-call-expression" { - declare export default function optimiseCallExpression( - callee: BabelNodeExpression, - thisNode: BabelNodeExpression, - args: $ReadOnly>, - optional: boolean - ): BabelNodeCallExpression | BabelNodeOptionalCallExpression; -} - -declare module "@babel/helper-get-function-arity" { - declare export default function helperGetFunctionArity( - node: BabelNodeFunction - ): number; -} - -declare module "@babel/helper-annotate-as-pure" { - declare export default function annotateAsPure( - pathOrNode: - | BabelNode - | { - node: BabelNode, - } - ): void; -} - -declare module "@babel/code-frame" { - declare type Location = { - column: number, - line: number, - }; - declare type NodeLocation = { - end?: Location, - start: Location, - }; - declare export interface Options { - /** - * Syntax highlight the code as JavaScript for terminals. default: false - */ - highlightCode?: boolean; - - /** - * The number of lines to show above the error. default: 2 - */ - linesAbove?: number; - - /** - * The number of lines to show below the error. default: 3 - */ - linesBelow?: number; - - /** - * Forcibly syntax highlight the code as JavaScript (for non-terminals); - * overrides highlightCode. - * default: false - */ - forceColor?: boolean; - - /** - * Pass in a string to be displayed inline (if possible) next to the - * highlighted location in the code. If it can't be positioned inline, - * it will be placed above the code frame. - * default: nothing - */ - message?: string; - } - declare export function codeFrameColumns( - rawLines: string, - loc: NodeLocation, - opts?: Options - ): string; - - /** - * Create a code frame, adding line numbers, code highlighting, and pointing to a given position. - */ - declare export default function codeFrame( - rawLines: string, - lineNumber: number, - colNumber?: number | null, - opts?: Options - ): string; -} - -declare module "@babel/helper-validator-identifier" { - declare function isReservedWord(word: string, inModule: boolean): boolean; - declare function isStrictReservedWord( - word: string, - inModule: boolean - ): boolean; - declare function isStrictBindOnlyReservedWord(word: string): boolean; - declare function isStrictBindReservedWord( - word: string, - inModule: boolean - ): boolean; - declare function isKeyword(word: string): boolean; - declare function isIdentifierStart(code: number): boolean; - declare function isIdentifierChar(code: number): boolean; - declare function isIdentifierName(name: string): boolean; -} - -declare module "@babel/helper-validator-option" { - declare class OptionValidator { - descriptor: string; - constructor(descriptor: string): OptionValidator; - validateTopLevelOptions(options: Object, TopLevelOptionShape: Object): void; - validateBooleanOption( - name: string, - value?: boolean, - defaultValue?: T - ): boolean | T; - validateStringOption( - name: string, - value?: string, - defaultValue?: T - ): string | T; - invariant(condition: boolean, message: string): void; - formatMessage(message: string): string; - } - declare function findSuggestion( - str: string, - arr: $ReadOnlyArray - ): string; -} - -declare module "@babel/helper-function-name" { - declare export default function helperFunctionNamefunction( - options: any, - localBinding?: boolean - ): any; -} - -declare module "@babel/helper-split-export-declaration" { - declare export default function splitExportDeclaration( - exportDeclaration: any - ): any; -} - -declare module "@babel/traverse" { - declare module.exports: any; -} - -declare module "@babel/generator" { - declare module.exports: any; -} - -declare module "@babel/highlight" { - import typeof { Chalk } from "chalk"; - declare type Options = { - forceColor?: boolean, - }; - - /** - * Whether the code should be highlighted given the passed options. - */ - declare function shouldHighlight(options: Options): boolean; - - /** - * The Chalk instance that should be used given the passed options. - */ - declare function getChalk(options: Options): Chalk; - - /** - * Highlight `code`. - */ - declare export default function highlight( - code: string, - options?: Options - ): string; - declare export { getChalk, shouldHighlight }; -} - -declare module "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" { - declare module.exports: any; -} - -declare module "@babel/helper-module-transforms" { - declare module.exports: any; -} - -declare module "@babel/plugin-transform-classes" { - declare module.exports: any; -} - -declare module "@babel/helper-compilation-targets" { - declare module.exports: any; -} - -declare module "@babel/helper-string-parser" { - declare export type StringContentsErrorHandlers = EscapedCharErrorHandlers & { - unterminated( - initialPos: number, - initialLineStart: number, - initialCurLine: number - ): void, - }; - declare export function readStringContents( - type: "single" | "double" | "template", - input: string, - pos: number, - lineStart: number, - curLine: number, - errors: StringContentsErrorHandlers - ): { - pos: number, - str: string, - containsInvalid: boolean, - lineStart: number, - curLine: number, - }; - - declare export type EscapedCharErrorHandlers = HexCharErrorHandlers & - CodePointErrorHandlers & { - strictNumericEscape(pos: number): void, - }; - - declare export function readEscapedChar( - input: string, - pos: number, - lineStart: number, - curLine: number, - inTemplate: boolean, - errors: EscapedCharErrorHandlers - ): { - pos: number, - ch: string | null, - lineStart: number, - curLine: number, - }; - - declare type HexCharErrorHandlers = IntErrorHandlers & { - invalidEscapeSequence(pos: number, startPos: number): void, - }; - - declare export type IntErrorHandlers = { - numericSeparatorInEscapeSequence(pos: number): void, - unexpectedNumericSeparator(pos: number): void, - // It can return "true" to indicate that the error was handled - // and the int parsing should continue. - invalidDigit(pos: number, radix: number): boolean, - }; - - declare export function readInt( - input: string, - pos: number, - radix: number, - len?: number, - forceLen: boolean, - allowNumSeparator: boolean | "bail", - errors: IntErrorHandlers - ): { - n: null | number, - pos: number, - }; - - declare export type CodePointErrorHandlers = HexCharErrorHandlers & { - invalidCodePoint(pos: number): void, - }; - - declare export function readCodePoint( - input: string, - pos: number, - throwOnInvalid: boolean, - errors: CodePointErrorHandlers - ): { - code: any, - pos: number, - }; -} diff --git a/lib/babel-polyfills.js.flow b/lib/babel-polyfills.js.flow deleted file mode 100644 index 3187b1d95f24..000000000000 --- a/lib/babel-polyfills.js.flow +++ /dev/null @@ -1,9 +0,0 @@ -declare module "babel-plugin-polyfill-regenerator" { - declare module.exports: { default: Function }; -} -declare module "babel-plugin-polyfill-corejs2" { - declare module.exports: { default: Function }; -} -declare module "babel-plugin-polyfill-corejs3" { - declare module.exports: { default: Function }; -} diff --git a/lib/package-json.js.flow b/lib/package-json.js.flow deleted file mode 100644 index 71a165966940..000000000000 --- a/lib/package-json.js.flow +++ /dev/null @@ -1,4 +0,0 @@ -declare var PACKAGE_JSON: { - name: string; - version: string; -}; diff --git a/lib/preset-modules.js.flow b/lib/preset-modules.js.flow deleted file mode 100644 index 78e460f1bbea..000000000000 --- a/lib/preset-modules.js.flow +++ /dev/null @@ -1,18 +0,0 @@ -declare module "@babel/preset-modules/lib/plugins/transform-async-arrows-in-class" { - declare module.exports: Function; -} -declare module "@babel/preset-modules/lib/plugins/transform-edge-default-parameters" { - declare module.exports: Function; -} -declare module "@babel/preset-modules/lib/plugins/transform-edge-function-name" { - declare module.exports: Function; -} -declare module "@babel/preset-modules/lib/plugins/transform-tagged-template-caching" { - declare module.exports: Function; -} -declare module "@babel/preset-modules/lib/plugins/transform-safari-block-shadowing" { - declare module.exports: Function; -} -declare module "@babel/preset-modules/lib/plugins/transform-safari-for-shadowing" { - declare module.exports: Function; -} diff --git a/lib/third-party-libs.js.flow b/lib/third-party-libs.js.flow deleted file mode 100644 index 11b8368ff1cd..000000000000 --- a/lib/third-party-libs.js.flow +++ /dev/null @@ -1,88 +0,0 @@ -/** - * Basic declarations for the npm modules we use. - */ - - declare module "module" { - declare export function createRequire(url: any): any; - } - -declare module "debug" { - declare export default (namespace: string) => (formatter: string, ...args: any[]) => void; -} - -declare var require: { - resolve(specifier: string, opts?: { - paths: string[] - }): string, -}; - -declare module "json5" { - declare export default { - parse: (string) => mixed, - }; -} - -declare module "semver" { - declare class SemVer { - build: Array; - loose: ?boolean; - major: number; - minor: number; - patch: number; - prerelease: Array; - raw: string; - version: string; - - constructor(version: string | SemVer): SemVer; - } - - declare module.exports: { - SemVer: SemVer; - - coerce(version: string | SemVer): SemVer | null; - gt(v1: string, v2: string): boolean; - intersects(r1: string, r2: string): boolean; - lt(v1: string, v2: string): boolean; - major(v: string): number; - minor(v: string): number; - patch(v: string): number; - satisfies(v1: string, r1: string): boolean; - valid(v: string): boolean; - } -} - -declare module "convert-source-map" { - import type { SourceMap, SourceMapGenerator } from "source-map"; - - declare class Converter { - toJSON(): string; - toBase64(): string; - toComment(): string; - toObject(): SourceMap - } - - declare module.exports: { - SourceMap: SourceMap, - Converter: Converter, - fromObject(obj: SourceMap | SourceMapGenerator): Converter, - fromJSON(str: string | Buffer): Converter, - fromBase64(str: string): Converter, - fromComment(str: string): Converter, - fromMapFileComment(str: string, dir: string): Converter, - fromSource(str: string): Converter, - fromMapFileSource(str: string, dir: string): Converter, - removeComments(str: string): string, - removeMapFileComments(str: string): string, - generateMapFileComment(path: string, options?: ?{ multiline: boolean }): string, - }; -} - -declare module "core-js-compat/data" { - declare type Target = "node" | "chrome" | "opera" | "edge" | "firefox" | "safari" | "ie" | "ios" | "android" | "electron" | "samsung" | "rhino"; - - declare module.exports: { - [key: string]: { - [target: Target]: string; - } - } -} diff --git a/package.json b/package.json index 92d4b644fee2..698baa8c673b 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,6 @@ "@babel/plugin-transform-modules-commonjs": "^7.18.0", "@babel/plugin-transform-runtime": "^7.18.0", "@babel/preset-env": "^7.18.0", - "@babel/preset-flow": "^7.17.12", "@babel/preset-typescript": "^7.17.12", "@babel/runtime": "^7.18.0", "@rollup/plugin-babel": "^5.3.1", @@ -48,13 +47,11 @@ "eslint": "^8.9.0", "eslint-formatter-codeframe": "^7.32.1", "eslint-import-resolver-node": "^0.3.6", - "eslint-plugin-flowtype": "^8.0.3", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^26.1.0", "eslint-plugin-node": "^11.1.0", "eslint-plugin-prettier": "^4.0.0", "fancy-log": "^2.0.0", - "flow-bin": "^0.123.0", "glob": "^7.1.7", "gulp": "^4.0.2", "gulp-filter": "^7.0.0", diff --git a/packages/babel-core/src/config/files/import.cjs b/packages/babel-core/src/config/files/import.cjs index 56793ef5bf77..14e765837710 100644 --- a/packages/babel-core/src/config/files/import.cjs +++ b/packages/babel-core/src/config/files/import.cjs @@ -2,6 +2,6 @@ // import() isn't supported, we can try/catch around the require() call // when loading this file. -module.exports = function import_(filepath: string) { +module.exports = function import_(filepath) { return import(filepath); }; diff --git a/packages/babel-parser/src/plugins/flow/index.ts b/packages/babel-parser/src/plugins/flow/index.ts index 9319934b8aa2..52536024f696 100644 --- a/packages/babel-parser/src/plugins/flow/index.ts +++ b/packages/babel-parser/src/plugins/flow/index.ts @@ -2586,7 +2586,7 @@ export default (superClass: { } // estree support } else if ( - // @ts-expect-error flow does not know about the face that estree can replace ClassMethod with MethodDefinition + // @ts-expect-error TS does not know about the face that estree can replace ClassMethod with MethodDefinition method.type === "MethodDefinition" && isConstructor && // @ts-expect-error estree diff --git a/packages/babel-parser/src/plugins/typescript/index.ts b/packages/babel-parser/src/plugins/typescript/index.ts index 6a68bb6725bf..f226c9a619c3 100644 --- a/packages/babel-parser/src/plugins/typescript/index.ts +++ b/packages/babel-parser/src/plugins/typescript/index.ts @@ -1140,9 +1140,7 @@ export default (superClass: { }); } - // Flow doesn't support ||= - seenOptionalElement = - seenOptionalElement || + seenOptionalElement ||= (type === "TSNamedTupleMember" && elementNode.optional) || type === "TSOptionalType"; @@ -1154,8 +1152,7 @@ export default (superClass: { } const isLabeled = checkType === "TSNamedTupleMember"; - // Flow doesn't support ??= - labeledElements = labeledElements ?? isLabeled; + labeledElements ??= isLabeled; if (labeledElements !== isLabeled) { this.raise(TSErrors.MixedLabeledAndUnlabeledElements, { at: elementNode, diff --git a/yarn.lock b/yarn.lock index 715da6f14bdd..5735f5377fea 100644 --- a/yarn.lock +++ b/yarn.lock @@ -358,7 +358,6 @@ __metadata: resolution: "@babel/eslint-config-internal@workspace:eslint/babel-eslint-config-internal" peerDependencies: "@babel/eslint-parser": ^7.16.0 - eslint-plugin-flowtype: ^8.0.3 languageName: unknown linkType: soft @@ -1876,17 +1875,6 @@ __metadata: languageName: node linkType: hard -"@babel/plugin-syntax-flow@npm:^7.17.12": - version: 7.17.12 - resolution: "@babel/plugin-syntax-flow@npm:7.17.12" - dependencies: - "@babel/helper-plugin-utils": ^7.17.12 - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: f92f18c9414478a3f408866c8a3d3f6b83f5369c8b76880245ba05d7ab9166d47c7d4ab1e0ac8b7a69d1d1b448bea836d1b340f823b1e548fec62a563cc9d0ec - languageName: node - linkType: hard - "@babel/plugin-syntax-flow@workspace:^, @babel/plugin-syntax-flow@workspace:packages/babel-plugin-syntax-flow": version: 0.0.0-use.local resolution: "@babel/plugin-syntax-flow@workspace:packages/babel-plugin-syntax-flow" @@ -2424,18 +2412,6 @@ __metadata: languageName: unknown linkType: soft -"@babel/plugin-transform-flow-strip-types@npm:^7.17.12": - version: 7.17.12 - resolution: "@babel/plugin-transform-flow-strip-types@npm:7.17.12" - dependencies: - "@babel/helper-plugin-utils": ^7.17.12 - "@babel/plugin-syntax-flow": ^7.17.12 - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: c37d3cc00aaec2036d1046f5376820f5c6098df493bd9a4d9013c47e0f5ef9c213eb4567ba1ce466269d9771f5cdc76613309c310b696a0489a20e593c8967e2 - languageName: node - linkType: hard - "@babel/plugin-transform-flow-strip-types@workspace:^, @babel/plugin-transform-flow-strip-types@workspace:packages/babel-plugin-transform-flow-strip-types": version: 0.0.0-use.local resolution: "@babel/plugin-transform-flow-strip-types@workspace:packages/babel-plugin-transform-flow-strip-types" @@ -3445,19 +3421,6 @@ __metadata: languageName: unknown linkType: soft -"@babel/preset-flow@npm:^7.17.12": - version: 7.17.12 - resolution: "@babel/preset-flow@npm:7.17.12" - dependencies: - "@babel/helper-plugin-utils": ^7.17.12 - "@babel/helper-validator-option": ^7.16.7 - "@babel/plugin-transform-flow-strip-types": ^7.17.12 - peerDependencies: - "@babel/core": ^7.0.0-0 - checksum: 21b123c21133eb0998f7b847176da392d49e894671c96785c2471d34845bb50cf4d376e1b4ea3edeafb8b258cc884cd3bed5882fe7ba8d7b0522f3829dea39c5 - languageName: node - linkType: hard - "@babel/preset-flow@workspace:^, @babel/preset-flow@workspace:packages/babel-preset-flow": version: 0.0.0-use.local resolution: "@babel/preset-flow@workspace:packages/babel-preset-flow" @@ -5861,7 +5824,6 @@ __metadata: "@babel/plugin-transform-modules-commonjs": ^7.18.0 "@babel/plugin-transform-runtime": ^7.18.0 "@babel/preset-env": ^7.18.0 - "@babel/preset-flow": ^7.17.12 "@babel/preset-typescript": ^7.17.12 "@babel/runtime": ^7.18.0 "@rollup/plugin-babel": ^5.3.1 @@ -5878,13 +5840,11 @@ __metadata: eslint: ^8.9.0 eslint-formatter-codeframe: ^7.32.1 eslint-import-resolver-node: ^0.3.6 - eslint-plugin-flowtype: ^8.0.3 eslint-plugin-import: ^2.25.4 eslint-plugin-jest: ^26.1.0 eslint-plugin-node: ^11.1.0 eslint-plugin-prettier: ^4.0.0 fancy-log: ^2.0.0 - flow-bin: ^0.123.0 glob: ^7.1.7 gulp: ^4.0.2 gulp-filter: ^7.0.0 @@ -7816,20 +7776,6 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-flowtype@npm:^8.0.3": - version: 8.0.3 - resolution: "eslint-plugin-flowtype@npm:8.0.3" - dependencies: - lodash: ^4.17.21 - string-natural-compare: ^3.0.1 - peerDependencies: - "@babel/plugin-syntax-flow": ^7.14.5 - "@babel/plugin-transform-react-jsx": ^7.14.9 - eslint: ^8.1.0 - checksum: 30e63c5357b0b5571f39afed51e59c140084f4aa53c106b1fd04f26da42b268908466daa6020b92943e71409bdaee1c67202515ed9012404d027cc92cb03cefa - languageName: node - linkType: hard - "eslint-plugin-import@npm:^2.25.4": version: 2.25.4 resolution: "eslint-plugin-import@npm:2.25.4" @@ -8672,15 +8618,6 @@ __metadata: languageName: node linkType: hard -"flow-bin@npm:^0.123.0": - version: 0.123.0 - resolution: "flow-bin@npm:0.123.0" - bin: - flow: cli.js - checksum: ba359e35a9c0d6a11f8881eb658118abe45e5201d57d4ec6ce24135b3ba9bc3118a4fb6a44ec6244a58a050c6843ccc03926014729502c019927aad1a1205048 - languageName: node - linkType: hard - "flush-write-stream@npm:^1.0.0, flush-write-stream@npm:^1.0.2": version: 1.1.1 resolution: "flush-write-stream@npm:1.1.1" @@ -11275,7 +11212,7 @@ fsevents@^1.2.7: languageName: node linkType: hard -"lodash@npm:^4.17.14, lodash@npm:^4.17.19, lodash@npm:^4.17.21, lodash@npm:^4.17.4": +"lodash@npm:^4.17.14, lodash@npm:^4.17.19, lodash@npm:^4.17.4": version: 4.17.21 resolution: "lodash@npm:4.17.21" checksum: eb835a2e51d381e561e508ce932ea50a8e5a68f4ebdd771ea240d3048244a8d13658acbd502cd4829768c56f2e16bdd4340b9ea141297d472517b83868e677f7 @@ -14146,13 +14083,6 @@ fsevents@^1.2.7: languageName: node linkType: hard -"string-natural-compare@npm:^3.0.1": - version: 3.0.1 - resolution: "string-natural-compare@npm:3.0.1" - checksum: 65910d9995074086e769a68728395effbba9b7186be5b4c16a7fad4f4ef50cae95ca16e3e9086e019cbb636ae8daac9c7b8fe91b5f21865c5c0f26e3c0725406 - languageName: node - linkType: hard - "string-width@npm:^1.0.1, string-width@npm:^1.0.2": version: 1.0.2 resolution: "string-width@npm:1.0.2"