Skip to content

Commit e86e42c

Browse files
authored
Merge pull request #41 from DaiPOS/roman/feature/add-flow
Roman/feature/add flow
2 parents fe16341 + 83c6cae commit e86e42c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+58434
-387
lines changed

.eslintignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
flow-typed
2+
node_modules

.eslintrc

+7-2
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@
5050
"jsx-a11y/label-has-for": 0,
5151
"jsx-a11y/no-static-element-interactions": 0
5252
},
53-
"extends": ["airbnb", "prettier", "prettier/react"],
54-
"plugins": ["react", "emotion", "jsx-a11y"]
53+
"extends": [
54+
"airbnb",
55+
"prettier",
56+
"prettier/react",
57+
"plugin:flowtype/recommended"
58+
],
59+
"plugins": ["react", "flowtype", "emotion", "jsx-a11y"]
5560
}

.flowconfig

+12-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
1-
[options]
1+
[ignore]
2+
3+
[include]
4+
5+
[libs]
6+
flow-typed
27

3-
# NOTE: This is needed for absolute path imports to work
8+
[lints]
9+
10+
[options]
11+
# NOTE: Following lines are needed for absolute path imports to work
412
# https://itnext.io/configure-absolute-paths-with-create-react-app-and-flow-e4b8922676a2
513
module.system.node.resolve_dirname=node_modules
614
module.system.node.resolve_dirname=src
15+
16+
[strict]

.prettierignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
package.json
2+
flow-typed

.travis.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- stage: Test
1616
name: 'lint'
1717
script: yarn lint
18+
- name: 'flow'
19+
script: yarn flow
1820
- name: 'unit tests'
1921
script: yarn test
2022
- stage: Deploy

0 commit comments

Comments
 (0)