Skip to content
This repository has been archived by the owner on Dec 16, 2019. It is now read-only.

Commit

Permalink
add flow
Browse files Browse the repository at this point in the history
Signed-off-by: Logan McAnsh <logan@mcan.sh>
  • Loading branch information
mcansh committed Oct 27, 2018
1 parent 33f3ed1 commit cbf0737
Show file tree
Hide file tree
Showing 28 changed files with 7,097 additions and 22 deletions.
13 changes: 2 additions & 11 deletions .babelrc.js
Original file line number Diff line number Diff line change
@@ -1,15 +1,6 @@
module.exports = {
presets: ['next/babel'],
plugins: [
[
'styled-components',
{
ssr: true,
displayName: true,
preprocess: false,
},
],
],
presets: ['next/babel', '@babel/preset-flow'],
plugins: ['styled-components'],
env: {
development: {
plugins: ['react-intl'],
Expand Down
23 changes: 23 additions & 0 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
[ignore]
.*/node_modules/*
.*/.next/.*
.*/next.config.js

[include]

[libs]

[lints]
all=error

[strict]
nonstrict-import
unclear-type
unsafe-getters-setters
untyped-import
untyped-type-import
sketchy-null

[options]
all=true
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe
32 changes: 32 additions & 0 deletions flow-typed/npm/@babel/preset-flow_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
// flow-typed signature: 44858bac6ac2018f5ac80017d80c9524
// flow-typed version: <<STUB>>/@babel/preset-flow_v7.0.0/flow_v0.84.0

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

// Filename aliases
declare module '@babel/preset-flow/lib/index.js' {
declare module.exports: $Exports<'@babel/preset-flow/lib/index'>;
}
109 changes: 109 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,109 @@
// flow-typed signature: 5c0628c7f40c5cbf1ce119c35f2db4a1
// flow-typed version: <<STUB>>/babel-eslint_v10.0.1/flow_v0.84.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/lib/analyze-scope' {
declare module.exports: any;
}

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

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

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

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

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

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

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

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

declare module 'babel-eslint/lib/parse-with-scope' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/parse' {
declare module.exports: any;
}

declare module 'babel-eslint/lib/visitor-keys' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-eslint/lib/analyze-scope.js' {
declare module.exports: $Exports<'babel-eslint/lib/analyze-scope'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/attachComments.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/attachComments'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertComments.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertComments'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/convertTemplateType.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/convertTemplateType'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/index.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/index'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toAST.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toAST'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toToken.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toToken'>;
}
declare module 'babel-eslint/lib/babylon-to-espree/toTokens.js' {
declare module.exports: $Exports<'babel-eslint/lib/babylon-to-espree/toTokens'>;
}
declare module 'babel-eslint/lib/index.js' {
declare module.exports: $Exports<'babel-eslint/lib/index'>;
}
declare module 'babel-eslint/lib/parse-with-scope.js' {
declare module.exports: $Exports<'babel-eslint/lib/parse-with-scope'>;
}
declare module 'babel-eslint/lib/parse.js' {
declare module.exports: $Exports<'babel-eslint/lib/parse'>;
}
declare module 'babel-eslint/lib/visitor-keys.js' {
declare module.exports: $Exports<'babel-eslint/lib/visitor-keys'>;
}
39 changes: 39 additions & 0 deletions flow-typed/npm/babel-plugin-react-intl_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
// flow-typed signature: 12b9e4d9b7217833966f471616dc8c45
// flow-typed version: <<STUB>>/babel-plugin-react-intl_v3.0.1/flow_v0.84.0

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

declare module 'babel-plugin-react-intl/lib/print-icu-message' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-plugin-react-intl/lib/index.js' {
declare module.exports: $Exports<'babel-plugin-react-intl/lib/index'>;
}
declare module 'babel-plugin-react-intl/lib/print-icu-message.js' {
declare module.exports: $Exports<'babel-plugin-react-intl/lib/print-icu-message'>;
}
123 changes: 123 additions & 0 deletions flow-typed/npm/babel-plugin-styled-components_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
// flow-typed signature: 831e105fbebc90582a57be6ed43a4639
// flow-typed version: <<STUB>>/babel-plugin-styled-components_v1.8.0/flow_v0.84.0

/**
* This is an autogenerated libdef stub for:
*
* 'babel-plugin-styled-components'
*
* 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-styled-components' {
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-styled-components/lib/css/placeholderUtils' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/index' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/minify/index' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/utils/detectors' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/utils/getName' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/utils/hash' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/utils/options' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/utils/prefixDigit' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/visitors/assignStyledRequired' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/visitors/minify' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/visitors/pure' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index' {
declare module.exports: any;
}

declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile' {
declare module.exports: any;
}

// Filename aliases
declare module 'babel-plugin-styled-components/lib/css/placeholderUtils.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/css/placeholderUtils'>;
}
declare module 'babel-plugin-styled-components/lib/index.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/index'>;
}
declare module 'babel-plugin-styled-components/lib/minify/index.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/minify/index'>;
}
declare module 'babel-plugin-styled-components/lib/utils/detectors.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/detectors'>;
}
declare module 'babel-plugin-styled-components/lib/utils/getName.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/getName'>;
}
declare module 'babel-plugin-styled-components/lib/utils/hash.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/hash'>;
}
declare module 'babel-plugin-styled-components/lib/utils/options.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/options'>;
}
declare module 'babel-plugin-styled-components/lib/utils/prefixDigit.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/utils/prefixDigit'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/assignStyledRequired.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/assignStyledRequired'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/displayNameAndId.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/displayNameAndId'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/minify.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/minify'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/pure.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/pure'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/index.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/index'>;
}
declare module 'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile.js' {
declare module.exports: $Exports<'babel-plugin-styled-components/lib/visitors/templateLiterals/transpile'>;
}

0 comments on commit cbf0737

Please sign in to comment.