Skip to content

Commit

Permalink
flow.
Browse files Browse the repository at this point in the history
  • Loading branch information
shaun-sweet committed Feb 21, 2018
1 parent 9a2e061 commit 2a608a8
Show file tree
Hide file tree
Showing 18 changed files with 658 additions and 45 deletions.
1 change: 1 addition & 0 deletions .babelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
"react-hot-loader/babel",
"syntax-dynamic-import",
"lodash",
"react-flow-props-to-prop-types",
[
"module-resolver",
{
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module.exports = {
extends: [
"standard",
"standard-react",
"standard-flow"
"standard-flow",
"plugin:flowtype/recommended"
],
"parser": "babel-eslint",
"plugins": [ "flowtype" ]
Expand Down
15 changes: 11 additions & 4 deletions .flowconfig
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
[ignore]
.*/src/config/.*
.*/build/.*
.*/tests/.*
.*/tools/.*
.*/.git/.*
.*/node_modules/.*
[include]

[libs]

[lints]

[options]
all=true
suppress_comment= \\(.\\|\n\\)*\\$FlowFixMe
module.name_mapper='^@config\/\(.*\)$' -> '<PROJECT_ROOT>/src/config/\1'
module.name_mapper='^@\/\(.*\)$' -> '<PROJECT_ROOT>/src/\1'
module.name_mapper='^@features\/\(.*\)$' -> '<PROJECT_ROOT>/src/features/\1'
module.name_mapper='^@components\/\(.*\)$' -> '<PROJECT_ROOT>/src/features/common/components/\1'
module.file_ext=.js
[strict]
45 changes: 45 additions & 0 deletions flow-typed/npm/eslint-config-standard-flow_vx.x.x.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
// flow-typed signature: 74a9ab74fd691e5301d62e5328d95cc6
// flow-typed version: <<STUB>>/eslint-config-standard-flow_v^1.0.1/flow_v0.66.0

/**
* This is an autogenerated libdef stub for:
*
* 'eslint-config-standard-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 'eslint-config-standard-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 'eslint-config-standard-flow/test/basic' {
declare module.exports: any;
}

declare module 'eslint-config-standard-flow/test/validate-config' {
declare module.exports: any;
}

// Filename aliases
declare module 'eslint-config-standard-flow/index' {
declare module.exports: $Exports<'eslint-config-standard-flow'>;
}
declare module 'eslint-config-standard-flow/index.js' {
declare module.exports: $Exports<'eslint-config-standard-flow'>;
}
declare module 'eslint-config-standard-flow/test/basic.js' {
declare module.exports: $Exports<'eslint-config-standard-flow/test/basic'>;
}
declare module 'eslint-config-standard-flow/test/validate-config.js' {
declare module.exports: $Exports<'eslint-config-standard-flow/test/validate-config'>;
}
Loading

0 comments on commit 2a608a8

Please sign in to comment.