Skip to content

Instantly share code, notes, and snippets.

@khanghoang
Created July 24, 2016 07:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khanghoang/53d586dc4327afb346760a49f523c5e2 to your computer and use it in GitHub Desktop.
Save khanghoang/53d586dc4327afb346760a49f523c5e2 to your computer and use it in GitHub Desktop.
eslint-flow-config
{
"parser": "babel-eslint",
"plugins": [
"flowtype"
],
"rules": {
"flowtype/require-parameter-type": 1,
"flowtype/require-return-type": [
1,
"always",
{
"annotateUndefined": "never"
}
],
"flowtype/space-after-type-colon": [
1,
"always"
],
"flowtype/space-before-type-colon": [
1,
"never"
],
"flowtype/type-id-match": [
1,
"^([A-Z][a-z0-9]+)+Type$"
]
},
"settings": {
"flowtype": {
"onlyFilesWithFlowAnnotation": false
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment