Skip to content

Commit

Permalink
Replace prop-types implementation with flow-types
Browse files Browse the repository at this point in the history
- Add build-tooling, which includes flow-bin, eslint-plugin-react, eslint-plugin-flowtype, eslint-plugin-flowtype-errors.
- Add Flow libdefs for Jest.
- Type-check all JS files in 'src'.
- Remove prop-types dependency.
  • Loading branch information
Mitch Ryan committed Sep 28, 2017
1 parent d925b8a commit 0e454d4
Show file tree
Hide file tree
Showing 16 changed files with 6,287 additions and 113 deletions.
12 changes: 11 additions & 1 deletion .eslintrc
@@ -1,7 +1,17 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"extends": [
"airbnb",
"plugin:react/recommended",
"plugin:flowtype/recommended"
],
"plugins": [
"react",
"flowtype",
"flowtype-errors",
],
"rules": {
"flowtype-errors/show-errors": 2,
"indent": [2, 4],
"max-len": [1, 120, 4, {"ignoreUrls": true}],
"id-length": [0],
Expand Down
9 changes: 9 additions & 0 deletions .flowconfig
@@ -0,0 +1,9 @@
[ignore]

[include]

[libs]

[lints]

[options]

0 comments on commit 0e454d4

Please sign in to comment.