diff --git a/CHANGELOG.md b/CHANGELOG.md index 94753267..04f73052 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,7 +4,8 @@ All notable changes to this project will be documented in this file. See [standa ## [Unreleased](https://github.com/motdotla/dotenv/compare/v11.0.0...master) -TBD +- Remove flow ([#584](https://github.com/motdotla/dotenv/pull/584)) + ## [11.0.0](https://github.com/motdotla/dotenv/compare/v10.0.0...v11.0.0) (2022-01-11) diff --git a/config.js b/config.js index c7e6447f..b0b5576b 100644 --- a/config.js +++ b/config.js @@ -1,5 +1,3 @@ -/* @flow */ - (function () { require('./lib/main').config( Object.assign( diff --git a/flow-typed/npm/decache_vx.x.x.js b/flow-typed/npm/decache_vx.x.x.js deleted file mode 100644 index 2c4df334..00000000 --- a/flow-typed/npm/decache_vx.x.x.js +++ /dev/null @@ -1,60 +0,0 @@ -// flow-typed signature: abdbe43f01cbcc690c733cdb2033ad4f -// flow-typed version: <>/decache_v4.5.0/flow_v0.92.1 - -/** - * This is an autogenerated libdef stub for: - * - * 'decache' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'decache' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'decache/decache' { - declare module.exports: any; -} - -declare module 'decache/lib/mymodule/index' { - declare module.exports: any; -} - -declare module 'decache/lib/othermodule' { - declare module.exports: any; -} - -declare module 'decache/setup' { - declare module.exports: any; -} - -declare module 'decache/test/test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'decache/decache.js' { - declare module.exports: $Exports<'decache/decache'>; -} -declare module 'decache/lib/mymodule/index.js' { - declare module.exports: $Exports<'decache/lib/mymodule/index'>; -} -declare module 'decache/lib/othermodule.js' { - declare module.exports: $Exports<'decache/lib/othermodule'>; -} -declare module 'decache/setup.js' { - declare module.exports: $Exports<'decache/setup'>; -} -declare module 'decache/test/test.js' { - declare module.exports: $Exports<'decache/test/test'>; -} diff --git a/flow-typed/npm/sinon_vx.x.x.js b/flow-typed/npm/sinon_vx.x.x.js deleted file mode 100644 index 183358be..00000000 --- a/flow-typed/npm/sinon_vx.x.x.js +++ /dev/null @@ -1,361 +0,0 @@ -// flow-typed signature: fd98cafe7bb28287e51ca85d49a17379 -// flow-typed version: <>/sinon_v6.3.5/flow_v0.82.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'sinon' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'sinon' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'sinon/lib/sinon' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/assert' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/behavior' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/blob' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/call' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/collect-own-methods' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/color' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/create-sandbox' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/default-behaviors' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/fake' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/match' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/mock-expectation' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/mock' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/sandbox' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/spy-formatters' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/spy' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/stub-entire-object' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/stub-non-function-property' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/stub' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/throw-on-falsy-object' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/called-in-order' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/deep-equal' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/default-config' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/deprecated' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/every' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/extend' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/format' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/function-to-string' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/get-config' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/get-next-tick' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/get-property-descriptor' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-es-module' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-non-existent-own-property' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-property-configurable' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/is-restorable' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/iterable-to-string' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/next-tick' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/order-by-first-call' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/restore' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/times-in-words' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/typeOf' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/use-promise-library' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/walk' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/core/wrap-method' { - declare module.exports: any; -} - -declare module 'sinon/lib/sinon/util/fake_timers' { - declare module.exports: any; -} - -declare module 'sinon/pkg/sinon-esm' { - declare module.exports: any; -} - -declare module 'sinon/pkg/sinon-no-sourcemaps' { - declare module.exports: any; -} - -declare module 'sinon/pkg/sinon' { - declare module.exports: any; -} - -// Filename aliases -declare module 'sinon/lib/sinon.js' { - declare module.exports: $Exports<'sinon/lib/sinon'>; -} -declare module 'sinon/lib/sinon/assert.js' { - declare module.exports: $Exports<'sinon/lib/sinon/assert'>; -} -declare module 'sinon/lib/sinon/behavior.js' { - declare module.exports: $Exports<'sinon/lib/sinon/behavior'>; -} -declare module 'sinon/lib/sinon/blob.js' { - declare module.exports: $Exports<'sinon/lib/sinon/blob'>; -} -declare module 'sinon/lib/sinon/call.js' { - declare module.exports: $Exports<'sinon/lib/sinon/call'>; -} -declare module 'sinon/lib/sinon/collect-own-methods.js' { - declare module.exports: $Exports<'sinon/lib/sinon/collect-own-methods'>; -} -declare module 'sinon/lib/sinon/color.js' { - declare module.exports: $Exports<'sinon/lib/sinon/color'>; -} -declare module 'sinon/lib/sinon/create-sandbox.js' { - declare module.exports: $Exports<'sinon/lib/sinon/create-sandbox'>; -} -declare module 'sinon/lib/sinon/default-behaviors.js' { - declare module.exports: $Exports<'sinon/lib/sinon/default-behaviors'>; -} -declare module 'sinon/lib/sinon/fake.js' { - declare module.exports: $Exports<'sinon/lib/sinon/fake'>; -} -declare module 'sinon/lib/sinon/match.js' { - declare module.exports: $Exports<'sinon/lib/sinon/match'>; -} -declare module 'sinon/lib/sinon/mock-expectation.js' { - declare module.exports: $Exports<'sinon/lib/sinon/mock-expectation'>; -} -declare module 'sinon/lib/sinon/mock.js' { - declare module.exports: $Exports<'sinon/lib/sinon/mock'>; -} -declare module 'sinon/lib/sinon/sandbox.js' { - declare module.exports: $Exports<'sinon/lib/sinon/sandbox'>; -} -declare module 'sinon/lib/sinon/spy-formatters.js' { - declare module.exports: $Exports<'sinon/lib/sinon/spy-formatters'>; -} -declare module 'sinon/lib/sinon/spy.js' { - declare module.exports: $Exports<'sinon/lib/sinon/spy'>; -} -declare module 'sinon/lib/sinon/stub-entire-object.js' { - declare module.exports: $Exports<'sinon/lib/sinon/stub-entire-object'>; -} -declare module 'sinon/lib/sinon/stub-non-function-property.js' { - declare module.exports: $Exports<'sinon/lib/sinon/stub-non-function-property'>; -} -declare module 'sinon/lib/sinon/stub.js' { - declare module.exports: $Exports<'sinon/lib/sinon/stub'>; -} -declare module 'sinon/lib/sinon/throw-on-falsy-object.js' { - declare module.exports: $Exports<'sinon/lib/sinon/throw-on-falsy-object'>; -} -declare module 'sinon/lib/sinon/util/core/called-in-order.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/called-in-order'>; -} -declare module 'sinon/lib/sinon/util/core/deep-equal.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/deep-equal'>; -} -declare module 'sinon/lib/sinon/util/core/default-config.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/default-config'>; -} -declare module 'sinon/lib/sinon/util/core/deprecated.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/deprecated'>; -} -declare module 'sinon/lib/sinon/util/core/every.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/every'>; -} -declare module 'sinon/lib/sinon/util/core/extend.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/extend'>; -} -declare module 'sinon/lib/sinon/util/core/format.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/format'>; -} -declare module 'sinon/lib/sinon/util/core/function-to-string.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/function-to-string'>; -} -declare module 'sinon/lib/sinon/util/core/get-config.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-config'>; -} -declare module 'sinon/lib/sinon/util/core/get-next-tick.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-next-tick'>; -} -declare module 'sinon/lib/sinon/util/core/get-property-descriptor.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/get-property-descriptor'>; -} -declare module 'sinon/lib/sinon/util/core/is-es-module.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-es-module'>; -} -declare module 'sinon/lib/sinon/util/core/is-non-existent-own-property.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-non-existent-own-property'>; -} -declare module 'sinon/lib/sinon/util/core/is-property-configurable.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-property-configurable'>; -} -declare module 'sinon/lib/sinon/util/core/is-restorable.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/is-restorable'>; -} -declare module 'sinon/lib/sinon/util/core/iterable-to-string.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/iterable-to-string'>; -} -declare module 'sinon/lib/sinon/util/core/next-tick.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/next-tick'>; -} -declare module 'sinon/lib/sinon/util/core/order-by-first-call.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/order-by-first-call'>; -} -declare module 'sinon/lib/sinon/util/core/restore.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/restore'>; -} -declare module 'sinon/lib/sinon/util/core/times-in-words.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/times-in-words'>; -} -declare module 'sinon/lib/sinon/util/core/typeOf.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/typeOf'>; -} -declare module 'sinon/lib/sinon/util/core/use-promise-library.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/use-promise-library'>; -} -declare module 'sinon/lib/sinon/util/core/walk.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/walk'>; -} -declare module 'sinon/lib/sinon/util/core/wrap-method.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/core/wrap-method'>; -} -declare module 'sinon/lib/sinon/util/fake_timers.js' { - declare module.exports: $Exports<'sinon/lib/sinon/util/fake_timers'>; -} -declare module 'sinon/pkg/sinon-esm.js' { - declare module.exports: $Exports<'sinon/pkg/sinon-esm'>; -} -declare module 'sinon/pkg/sinon-no-sourcemaps.js' { - declare module.exports: $Exports<'sinon/pkg/sinon-no-sourcemaps'>; -} -declare module 'sinon/pkg/sinon.js' { - declare module.exports: $Exports<'sinon/pkg/sinon'>; -} diff --git a/flow-typed/npm/tap_vx.x.x.js b/flow-typed/npm/tap_vx.x.x.js deleted file mode 100644 index 069b481a..00000000 --- a/flow-typed/npm/tap_vx.x.x.js +++ /dev/null @@ -1,144 +0,0 @@ -// flow-typed signature: babbe08a031ef4f7eb2f8d9812098a53 -// flow-typed version: <>/tap_v12.0.1/flow_v0.82.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'tap' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'tap' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'tap/bin/mochatap' { - declare module.exports: any; -} - -declare module 'tap/bin/run' { - declare module.exports: any; -} - -declare module 'tap/lib/base' { - declare module.exports: any; -} - -declare module 'tap/lib/clean-yaml-object' { - declare module.exports: any; -} - -declare module 'tap/lib/diags' { - declare module.exports: any; -} - -declare module 'tap/lib/extra-from-error' { - declare module.exports: any; -} - -declare module 'tap/lib/mocha' { - declare module.exports: any; -} - -declare module 'tap/lib/obj-to-yaml' { - declare module.exports: any; -} - -declare module 'tap/lib/parse-test-args' { - declare module.exports: any; -} - -declare module 'tap/lib/point' { - declare module.exports: any; -} - -declare module 'tap/lib/snapshot' { - declare module.exports: any; -} - -declare module 'tap/lib/spawn' { - declare module.exports: any; -} - -declare module 'tap/lib/stack' { - declare module.exports: any; -} - -declare module 'tap/lib/stdin' { - declare module.exports: any; -} - -declare module 'tap/lib/synonyms' { - declare module.exports: any; -} - -declare module 'tap/lib/tap' { - declare module.exports: any; -} - -declare module 'tap/lib/test' { - declare module.exports: any; -} - -// Filename aliases -declare module 'tap/bin/mochatap.js' { - declare module.exports: $Exports<'tap/bin/mochatap'>; -} -declare module 'tap/bin/run.js' { - declare module.exports: $Exports<'tap/bin/run'>; -} -declare module 'tap/lib/base.js' { - declare module.exports: $Exports<'tap/lib/base'>; -} -declare module 'tap/lib/clean-yaml-object.js' { - declare module.exports: $Exports<'tap/lib/clean-yaml-object'>; -} -declare module 'tap/lib/diags.js' { - declare module.exports: $Exports<'tap/lib/diags'>; -} -declare module 'tap/lib/extra-from-error.js' { - declare module.exports: $Exports<'tap/lib/extra-from-error'>; -} -declare module 'tap/lib/mocha.js' { - declare module.exports: $Exports<'tap/lib/mocha'>; -} -declare module 'tap/lib/obj-to-yaml.js' { - declare module.exports: $Exports<'tap/lib/obj-to-yaml'>; -} -declare module 'tap/lib/parse-test-args.js' { - declare module.exports: $Exports<'tap/lib/parse-test-args'>; -} -declare module 'tap/lib/point.js' { - declare module.exports: $Exports<'tap/lib/point'>; -} -declare module 'tap/lib/snapshot.js' { - declare module.exports: $Exports<'tap/lib/snapshot'>; -} -declare module 'tap/lib/spawn.js' { - declare module.exports: $Exports<'tap/lib/spawn'>; -} -declare module 'tap/lib/stack.js' { - declare module.exports: $Exports<'tap/lib/stack'>; -} -declare module 'tap/lib/stdin.js' { - declare module.exports: $Exports<'tap/lib/stdin'>; -} -declare module 'tap/lib/synonyms.js' { - declare module.exports: $Exports<'tap/lib/synonyms'>; -} -declare module 'tap/lib/tap.js' { - declare module.exports: $Exports<'tap/lib/tap'>; -} -declare module 'tap/lib/test.js' { - declare module.exports: $Exports<'tap/lib/test'>; -} diff --git a/lib/cli-options.js b/lib/cli-options.js index ad69fabd..a41473df 100644 --- a/lib/cli-options.js +++ b/lib/cli-options.js @@ -1,8 +1,6 @@ -/* @flow */ - const re = /^dotenv_config_(encoding|path|debug)=(.+)$/ -module.exports = function optionMatcher (args /*: Array */) { +module.exports = function optionMatcher (args) { return args.reduce(function (acc, cur) { const matches = cur.match(re) if (matches) { diff --git a/lib/env-options.js b/lib/env-options.js index b4c4a606..e42bdf2a 100644 --- a/lib/env-options.js +++ b/lib/env-options.js @@ -1,5 +1,3 @@ -/* @flow */ - // ../config.js accepts options via environment variables const options = {} diff --git a/lib/main.js b/lib/main.js index 539b950c..c7d0bffd 100644 --- a/lib/main.js +++ b/lib/main.js @@ -1,31 +1,8 @@ -/* @flow */ -/*:: - -type DotenvParseOptions = { - debug?: boolean -} - -// keys and values from src -type DotenvParseOutput = { [string]: string } - -type DotenvConfigOptions = { - path?: string, // path to .env file - encoding?: string, // encoding of .env file - debug?: string // turn on logging for debugging purposes -} - -type DotenvConfigOutput = { - parsed?: DotenvParseOutput, - error?: Error -} - -*/ - const fs = require('fs') const path = require('path') const os = require('os') -function log (message /*: string */) { +function log (message) { console.log(`[dotenv][DEBUG] ${message}`) } @@ -35,7 +12,7 @@ const RE_NEWLINES = /\\n/g const NEWLINES_MATCH = /\r\n|\n|\r/ // Parses src into an Object -function parse (src /*: string | Buffer */, options /*: ?DotenvParseOptions */) /*: DotenvParseOutput */ { +function parse (src, options) { const debug = Boolean(options && options.debug) const obj = {} @@ -79,9 +56,9 @@ function resolveHome (envPath) { } // Populates process.env from .env file -function config (options /*: ?DotenvConfigOptions */) /*: DotenvConfigOutput */ { +function config (options) { let dotenvPath = path.resolve(process.cwd(), '.env') - let encoding /*: string */ = 'utf8' + let encoding = 'utf8' const debug = Boolean(options && options.debug) if (options) { diff --git a/package-lock.json b/package-lock.json index 37763125..4ade7614 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,6 @@ "devDependencies": { "decache": "^4.5.1", "dtslint": "^0.9.8", - "flow-bin": "^0.109.0", "sinon": "^7.5.0", "standard": "^13.1.0", "standard-markdown": "^5.1.0", @@ -3213,18 +3212,6 @@ "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", "dev": true }, - "node_modules/flow-bin": { - "version": "0.109.0", - "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.109.0.tgz", - "integrity": "sha512-tpcMTpAGIRivYhFV3KJq+zHI2HzcXo8MoGe9pXS4G/UZuey2Faq/e8/gdph2WF0erRlML5hmwfwiq7v9c25c7w==", - "dev": true, - "bin": { - "flow": "cli.js" - }, - "engines": { - "node": ">=0.10.0" - } - }, "node_modules/flow-parser": { "version": "0.109.0", "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.109.0.tgz", @@ -12940,12 +12927,6 @@ "integrity": "sha512-a1hQMktqW9Nmqr5aktAux3JMNqaucxGcjtjWnZLHX7yyPCmlSV3M54nGYbqT8K+0GhF3NBgmJCc3ma+WOgX8Jg==", "dev": true }, - "flow-bin": { - "version": "0.109.0", - "resolved": "https://registry.npmjs.org/flow-bin/-/flow-bin-0.109.0.tgz", - "integrity": "sha512-tpcMTpAGIRivYhFV3KJq+zHI2HzcXo8MoGe9pXS4G/UZuey2Faq/e8/gdph2WF0erRlML5hmwfwiq7v9c25c7w==", - "dev": true - }, "flow-parser": { "version": "0.109.0", "resolved": "https://registry.npmjs.org/flow-parser/-/flow-parser-0.109.0.tgz", diff --git a/package.json b/package.json index 7e118f7d..10bf58fe 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,6 @@ }, "types": "types/index.d.ts", "scripts": { - "flow": "flow", "dtslint": "dtslint types", "lint": "standard", "postlint": "standard-markdown", @@ -38,7 +37,6 @@ "devDependencies": { "decache": "^4.5.1", "dtslint": "^0.9.8", - "flow-bin": "^0.109.0", "sinon": "^7.5.0", "standard": "^13.1.0", "standard-markdown": "^5.1.0", @@ -50,8 +48,6 @@ "node": ">=12" }, "standard": { - "ignore": [ - "flow-typed/" - ] + "ignore": [] } } diff --git a/tests/test-cli-options.js b/tests/test-cli-options.js index 5ecf02ff..9e000a8f 100644 --- a/tests/test-cli-options.js +++ b/tests/test-cli-options.js @@ -1,5 +1,3 @@ -/* @flow */ - const t = require('tap') const options = require('../lib/cli-options') diff --git a/tests/test-config-cli.js b/tests/test-config-cli.js index 5c9a8beb..01a819eb 100644 --- a/tests/test-config-cli.js +++ b/tests/test-config-cli.js @@ -1,5 +1,3 @@ -/* @flow */ - const cp = require('child_process') const path = require('path') diff --git a/tests/test-config.js b/tests/test-config.js index f3beb358..074f6b72 100644 --- a/tests/test-config.js +++ b/tests/test-config.js @@ -1,5 +1,3 @@ -/* @flow */ - const fs = require('fs') const os = require('os') const path = require('path') diff --git a/tests/test-env-options.js b/tests/test-env-options.js index 0870f895..8932b5dd 100644 --- a/tests/test-env-options.js +++ b/tests/test-env-options.js @@ -1,5 +1,3 @@ -/* @flow */ - const t = require('tap') const decache = require('decache') diff --git a/tests/test-parse.js b/tests/test-parse.js index d042fc97..18381cf8 100644 --- a/tests/test-parse.js +++ b/tests/test-parse.js @@ -1,5 +1,3 @@ -/* @flow */ - const fs = require('fs') const sinon = require('sinon')