Skip to content

Commit

Permalink
flow plugins, config, libdefs
Browse files Browse the repository at this point in the history
  • Loading branch information
mmcgahan committed Jun 14, 2018
1 parent 93f5c9d commit 08259c2
Show file tree
Hide file tree
Showing 77 changed files with 14,013 additions and 978 deletions.
5 changes: 4 additions & 1 deletion .babelrc
Expand Up @@ -3,5 +3,8 @@
"es2015",
"react",
"stage-2"
],
"plugins": [
"transform-flow-strip-types"
]
}
}
6 changes: 3 additions & 3 deletions .eslintignore
@@ -1,8 +1,8 @@
assets/
build/
coverage/
icons/
lib/
flow-typed/
infrastructure/
node_modules/
svg/
*.log
tests/
12 changes: 10 additions & 2 deletions .eslintrc.js
@@ -1,5 +1,13 @@
const config = {
extends: 'eslint:recommended',
root: true,
parser: 'babel-eslint',
extends: [
'eslint:recommended',
'prettier',
'prettier/flowtype',
'prettier/react',
'plugin:flowtype/recommended',
],
parserOptions: {
ecmaVersion: 6,
ecmaFeatures: {
Expand All @@ -15,7 +23,7 @@ const config = {
jasmine: true,
es6: true,
},
plugins: ['react'],
plugins: ['react', 'flowtype'],
rules: {
'array-callback-return': 2,
'comma-dangle': 0,
Expand Down
11 changes: 11 additions & 0 deletions .flowconfig
@@ -0,0 +1,11 @@
[ignore]
./build/*
./coverage/*
.*.json
# ./node_modules/radium/*

[include]

[libs]

[options]
2 changes: 1 addition & 1 deletion .yarnrc
@@ -1 +1 @@
save-prefix false
save-exact true
18 changes: 18 additions & 0 deletions flow-typed/npm/@alrra/travis-scripts_vx.x.x.js
@@ -0,0 +1,18 @@
// flow-typed signature: a1f663df1ac9d59e55b33b17d3d541bc
// flow-typed version: <<STUB>>/@alrra/travis-scripts_v3.0.1/flow_v0.74.0

/**
* This is an autogenerated libdef stub for:
*
* '@alrra/travis-scripts'
*
* 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 '@alrra/travis-scripts' {
declare module.exports: any;
}
12 changes: 12 additions & 0 deletions flow-typed/npm/@storybook/addon-actions_v3.x.x.js
@@ -0,0 +1,12 @@
// flow-typed signature: 2f5b0f18c5b5b31b01f63163429685c7
// flow-typed version: 5edd39ab2e/@storybook/addon-actions_v3.x.x/flow_>=v0.25.x

declare module '@storybook/addon-actions' {
declare type Action = (name: string) => (...args: Array<any>) => void;
declare type DecorateFn = (args: Array<any>) => Array<any>;

declare module.exports: {
action: Action,
decorateAction(args: Array<DecorateFn>): Action;
};
}

0 comments on commit 08259c2

Please sign in to comment.