Skip to content

Commit

Permalink
feat: add flow types (#43)
Browse files Browse the repository at this point in the history
Add flow types, reduce set of published files
  • Loading branch information
skeggse committed Mar 3, 2020
1 parent 08c2267 commit 37a3c4c
Show file tree
Hide file tree
Showing 5 changed files with 808 additions and 8 deletions.
11 changes: 10 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,14 @@
"no-var": "error",
"prefer-const": "error"
},
"overrides": [{ "files": ["test/**/*.js"], "parserOptions": { "ecmaVersion": 2018 } }]
"overrides": [
{ "files": ["test/**/*.js"], "parserOptions": { "ecmaVersion": 2018 } },
{
"files": ["index.js.flow"],
"extends": ["plugin:flowtype/recommended", "prettier/flowtype"],
"parser": "babel-eslint",
"plugins": ["flowtype"],
"rules": { "no-unused-vars": "off" }
}
]
}
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.js.flow linguist-language=js
Loading

0 comments on commit 37a3c4c

Please sign in to comment.