Skip to content

Commit a45aa28

Browse files
committed
fix: adding flow support and prepush hooks
1 parent dc11692 commit a45aa28

26 files changed

+4812
-43
lines changed

.flowconfig

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[ignore]
2+
3+
[include]
4+
5+
[libs]
6+
7+
[lints]
8+
9+
[options]
10+
11+
[strict]

.huskyrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@ module.exports = {
22
hooks: {
33
'commit-msg': 'commitlint -E HUSKY_GIT_PARAMS',
44
'pre-commit': 'lint-staged',
5-
// 'pre-push': 'flow',
5+
'pre-push': 'flow',
66
},
77
};
+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// flow-typed signature: 4438c873863571fb6d8a5f2a0af16162
2+
// flow-typed version: <<STUB>>/@commitlint/cli_v7.5.2/flow_v0.100.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@commitlint/cli'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@commitlint/cli' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module '@commitlint/cli/lib/cli' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module '@commitlint/cli/lib/help' {
30+
declare module.exports: any;
31+
}
32+
33+
// Filename aliases
34+
declare module '@commitlint/cli/index' {
35+
declare module.exports: $Exports<'@commitlint/cli'>;
36+
}
37+
declare module '@commitlint/cli/index.js' {
38+
declare module.exports: $Exports<'@commitlint/cli'>;
39+
}
40+
declare module '@commitlint/cli/lib/cli.js' {
41+
declare module.exports: $Exports<'@commitlint/cli/lib/cli'>;
42+
}
43+
declare module '@commitlint/cli/lib/help.js' {
44+
declare module.exports: $Exports<'@commitlint/cli/lib/help'>;
45+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// flow-typed signature: e4d1b54bc37489f9009695bce86647e1
2+
// flow-typed version: <<STUB>>/@commitlint/config-conventional_v7.5.0/flow_v0.100.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@commitlint/config-conventional'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@commitlint/config-conventional' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
26+
27+
// Filename aliases
28+
declare module '@commitlint/config-conventional/index' {
29+
declare module.exports: $Exports<'@commitlint/config-conventional'>;
30+
}
31+
declare module '@commitlint/config-conventional/index.js' {
32+
declare module.exports: $Exports<'@commitlint/config-conventional'>;
33+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
// flow-typed signature: 9dde07e45eb85b36eecbaea3363cf822
2+
// flow-typed version: <<STUB>>/eslint-config-prettier_v4.3.0/flow_v0.100.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* 'eslint-config-prettier'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module 'eslint-config-prettier' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module 'eslint-config-prettier/@typescript-eslint' {
26+
declare module.exports: any;
27+
}
28+
29+
declare module 'eslint-config-prettier/babel' {
30+
declare module.exports: any;
31+
}
32+
33+
declare module 'eslint-config-prettier/bin/cli' {
34+
declare module.exports: any;
35+
}
36+
37+
declare module 'eslint-config-prettier/bin/validators' {
38+
declare module.exports: any;
39+
}
40+
41+
declare module 'eslint-config-prettier/flowtype' {
42+
declare module.exports: any;
43+
}
44+
45+
declare module 'eslint-config-prettier/react' {
46+
declare module.exports: any;
47+
}
48+
49+
declare module 'eslint-config-prettier/standard' {
50+
declare module.exports: any;
51+
}
52+
53+
declare module 'eslint-config-prettier/unicorn' {
54+
declare module.exports: any;
55+
}
56+
57+
declare module 'eslint-config-prettier/vue' {
58+
declare module.exports: any;
59+
}
60+
61+
// Filename aliases
62+
declare module 'eslint-config-prettier/@typescript-eslint.js' {
63+
declare module.exports: $Exports<'eslint-config-prettier/@typescript-eslint'>;
64+
}
65+
declare module 'eslint-config-prettier/babel.js' {
66+
declare module.exports: $Exports<'eslint-config-prettier/babel'>;
67+
}
68+
declare module 'eslint-config-prettier/bin/cli.js' {
69+
declare module.exports: $Exports<'eslint-config-prettier/bin/cli'>;
70+
}
71+
declare module 'eslint-config-prettier/bin/validators.js' {
72+
declare module.exports: $Exports<'eslint-config-prettier/bin/validators'>;
73+
}
74+
declare module 'eslint-config-prettier/flowtype.js' {
75+
declare module.exports: $Exports<'eslint-config-prettier/flowtype'>;
76+
}
77+
declare module 'eslint-config-prettier/index' {
78+
declare module.exports: $Exports<'eslint-config-prettier'>;
79+
}
80+
declare module 'eslint-config-prettier/index.js' {
81+
declare module.exports: $Exports<'eslint-config-prettier'>;
82+
}
83+
declare module 'eslint-config-prettier/react.js' {
84+
declare module.exports: $Exports<'eslint-config-prettier/react'>;
85+
}
86+
declare module 'eslint-config-prettier/standard.js' {
87+
declare module.exports: $Exports<'eslint-config-prettier/standard'>;
88+
}
89+
declare module 'eslint-config-prettier/unicorn.js' {
90+
declare module.exports: $Exports<'eslint-config-prettier/unicorn'>;
91+
}
92+
declare module 'eslint-config-prettier/vue.js' {
93+
declare module.exports: $Exports<'eslint-config-prettier/vue'>;
94+
}
+33
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// flow-typed signature: e200d28d8907937943838f2c9f530d1c
2+
// flow-typed version: <<STUB>>/eslint-loader_v2.1.2/flow_v0.100.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* 'eslint-loader'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module 'eslint-loader' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
26+
27+
// Filename aliases
28+
declare module 'eslint-loader/index' {
29+
declare module.exports: $Exports<'eslint-loader'>;
30+
}
31+
declare module 'eslint-loader/index.js' {
32+
declare module.exports: $Exports<'eslint-loader'>;
33+
}

0 commit comments

Comments
 (0)