Skip to content

Commit

Permalink
chore(Flowtype): add flow-bin and lib defs
Browse files Browse the repository at this point in the history
  • Loading branch information
nodkz committed Nov 3, 2017
1 parent 5c08c0b commit 9604f86
Show file tree
Hide file tree
Showing 26 changed files with 4,507 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
{
"plugins": [
"babel-plugin-transform-object-rest-spread"
"babel-plugin-transform-object-rest-spread",
"babel-plugin-transform-flow-strip-types",
],
"env": {
"lib": {
Expand Down
8 changes: 6 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@
"singleQuote": true,
"trailingComma": "es5",
}],
"no-plusplus": 0
"no-plusplus": 0,
"prefer-destructuring": 0,
"no-prototype-builtins": 0
},
"env": {
"jest": true
},
"globals": {
"fetch": true,
"FormData": true
"FormData": true,
"File": true,
"$Shape": true,
}
}
40 changes: 40 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
[ignore]
.*/node_modules/ajv.*
.*/node_modules/acorn.*
.*/node_modules/async.*
.*/node_modules/babel.*
.*/node_modules/bluebird.*
.*/node_modules/caniuse-db.*
.*/node_modules/config-chain.*
.*/node_modules/conventional-changelog.*
.*/node_modules/core-js.*
.*/node_modules/cssstyle.*
.*/node_modules/diff.*
.*/node_modules/es5-ext.*
.*/node_modules/escope.*
.*/node_modules/escodegen.*
.*/node_modules/eslint.*
.*/node_modules/github.*
.*/node_modules/fsevents.*
.*/node_modules/jsdoctypeparser.*
.*/node_modules/jsdom.*
.*/node_modules/iconv.*
.*/node_modules/istanbul.*
.*/node_modules/handlebars.*
.*/node_modules/markdown.*
.*/node_modules/node-notifier.*
.*/node_modules/npmconf.*
.*/node_modules/prettier.*
.*/node_modules/source-map.*
.*/node_modules/travis.*
.*/node_modules/uglify.*
.*/node_modules/yargs.*

[include]

[libs]

[options]
esproposal.class_instance_fields=enable
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
unsafe.enable_getters_and_setters=true
108 changes: 108 additions & 0 deletions flow-typed/npm/babel-cli_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,108 @@
// flow-typed signature: 064d2dd4f5e58de7c0422f57ebbd8589
// flow-typed version: <<STUB>>/babel-cli_v^6.26.0/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-cli'
*
* 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 'babel-cli' {
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 'babel-cli/bin/babel-doctor' {
declare module.exports: any;
}

declare module 'babel-cli/bin/babel-external-helpers' {
declare module.exports: any;
}

declare module 'babel-cli/bin/babel-node' {
declare module.exports: any;
}

declare module 'babel-cli/bin/babel' {
declare module.exports: any;
}

declare module 'babel-cli/lib/_babel-node' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-external-helpers' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel-node' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/dir' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/file' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/index' {
declare module.exports: any;
}

declare module 'babel-cli/lib/babel/util' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-cli/bin/babel-doctor.js' {
declare module.exports: $Exports<'babel-cli/bin/babel-doctor'>;
}
declare module 'babel-cli/bin/babel-external-helpers.js' {
declare module.exports: $Exports<'babel-cli/bin/babel-external-helpers'>;
}
declare module 'babel-cli/bin/babel-node.js' {
declare module.exports: $Exports<'babel-cli/bin/babel-node'>;
}
declare module 'babel-cli/bin/babel.js' {
declare module.exports: $Exports<'babel-cli/bin/babel'>;
}
declare module 'babel-cli/index' {
declare module.exports: $Exports<'babel-cli'>;
}
declare module 'babel-cli/index.js' {
declare module.exports: $Exports<'babel-cli'>;
}
declare module 'babel-cli/lib/_babel-node.js' {
declare module.exports: $Exports<'babel-cli/lib/_babel-node'>;
}
declare module 'babel-cli/lib/babel-external-helpers.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-external-helpers'>;
}
declare module 'babel-cli/lib/babel-node.js' {
declare module.exports: $Exports<'babel-cli/lib/babel-node'>;
}
declare module 'babel-cli/lib/babel/dir.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/dir'>;
}
declare module 'babel-cli/lib/babel/file.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/file'>;
}
declare module 'babel-cli/lib/babel/index.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/index'>;
}
declare module 'babel-cli/lib/babel/util.js' {
declare module.exports: $Exports<'babel-cli/lib/babel/util'>;
}
80 changes: 80 additions & 0 deletions flow-typed/npm/babel-eslint_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,80 @@
// flow-typed signature: 7f9ff1170369673e9e113cbdbbdf0737
// flow-typed version: <<STUB>>/babel-eslint_v^8.0.1/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-eslint'
*
* 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 'babel-eslint' {
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 'babel-eslint/babylon-to-espree/attachComments' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/convertComments' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/convertTemplateType' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/index' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toAST' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toToken' {
declare module.exports: any;
}

declare module 'babel-eslint/babylon-to-espree/toTokens' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-eslint/babylon-to-espree/attachComments.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/attachComments'>;
}
declare module 'babel-eslint/babylon-to-espree/convertComments.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertComments'>;
}
declare module 'babel-eslint/babylon-to-espree/convertTemplateType.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/convertTemplateType'>;
}
declare module 'babel-eslint/babylon-to-espree/index.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/index'>;
}
declare module 'babel-eslint/babylon-to-espree/toAST.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toAST'>;
}
declare module 'babel-eslint/babylon-to-espree/toToken.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toToken'>;
}
declare module 'babel-eslint/babylon-to-espree/toTokens.js' {
declare module.exports: $Exports<'babel-eslint/babylon-to-espree/toTokens'>;
}
declare module 'babel-eslint/index' {
declare module.exports: $Exports<'babel-eslint'>;
}
declare module 'babel-eslint/index.js' {
declare module.exports: $Exports<'babel-eslint'>;
}
32 changes: 32 additions & 0 deletions flow-typed/npm/babel-jest_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// flow-typed signature: 610e53752c2b8fad81adaf90adaaeb35
// flow-typed version: <<STUB>>/babel-jest_v^21.2.0/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-jest'
*
* 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 'babel-jest' {
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 'babel-jest/build/index' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-jest/build/index.js' {
declare module.exports: $Exports<'babel-jest/build/index'>;
}
32 changes: 32 additions & 0 deletions flow-typed/npm/babel-plugin-transform-object-rest-spread_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// flow-typed signature: 2dfd9a8ab1de78e863ab6662e15be13f
// flow-typed version: <<STUB>>/babel-plugin-transform-object-rest-spread_v^6.26.0/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-transform-object-rest-spread'
*
* 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 'babel-plugin-transform-object-rest-spread' {
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 'babel-plugin-transform-object-rest-spread/lib/index' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-plugin-transform-object-rest-spread/lib/index.js' {
declare module.exports: $Exports<'babel-plugin-transform-object-rest-spread/lib/index'>;
}
67 changes: 67 additions & 0 deletions flow-typed/npm/babel-polyfill_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
// flow-typed signature: 16cf5917797a8204a830cff39d18c8e6
// flow-typed version: <<STUB>>/babel-polyfill_v^6.26.0/flow_v0.58.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-polyfill'
*
* 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 'babel-polyfill' {
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 'babel-polyfill/browser' {
declare module.exports: any;
}

declare module 'babel-polyfill/dist/polyfill' {
declare module.exports: any;
}

declare module 'babel-polyfill/dist/polyfill.min' {
declare module.exports: any;
}

declare module 'babel-polyfill/lib/index' {
declare module.exports: any;
}

declare module 'babel-polyfill/scripts/postpublish' {
declare module.exports: any;
}

declare module 'babel-polyfill/scripts/prepublish' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-polyfill/browser.js' {
declare module.exports: $Exports<'babel-polyfill/browser'>;
}
declare module 'babel-polyfill/dist/polyfill.js' {
declare module.exports: $Exports<'babel-polyfill/dist/polyfill'>;
}
declare module 'babel-polyfill/dist/polyfill.min.js' {
declare module.exports: $Exports<'babel-polyfill/dist/polyfill.min'>;
}
declare module 'babel-polyfill/lib/index.js' {
declare module.exports: $Exports<'babel-polyfill/lib/index'>;
}
declare module 'babel-polyfill/scripts/postpublish.js' {
declare module.exports: $Exports<'babel-polyfill/scripts/postpublish'>;
}
declare module 'babel-polyfill/scripts/prepublish.js' {
declare module.exports: $Exports<'babel-polyfill/scripts/prepublish'>;
}
Loading

0 comments on commit 9604f86

Please sign in to comment.