-
-
Notifications
You must be signed in to change notification settings - Fork 32
Getting Started
Amila Welihinda edited this page Aug 29, 2018
·
5 revisions
- Install Dependencies
npm install --save-dev eslint
npm install --save-dev eslint-plugin-flowtype-errors
npm install --save-dev babel
npm install --save-dev babel-eslint
npm install --save-dev babel-plugin-transform-flow-strip-types
- Configure
Create a .babelrc
with:
{
"plugins": ["transform-flow-strip-types"]
}
Create a .flowconfig
with:
[ignore]
.*/node_modules/fbjs/.*
.*/git/.*
Create an .eslintrc
with:
{
"parser": "babel-eslint",
"rules": {
"flowtype-errors/show-errors": "error"
},
"plugins": [
"flowtype-errors"
]
}