eslint-plugin-flow-vars
v0.5.0 eslint eslint-plugin eslintplugin flow flow-type flowtype
eslint-plugin-flow-vars
An eslint plugin that makes flow type annotations global variables and marks declarations as used. Solves the problem of false positives with no-undef
and no-unused-vars
when using babel-eslint
.
Usage
npm install eslint babel-eslint eslint-plugin-flow-vars
In your .eslintrc
:
{
"parser": "babel-eslint",
"plugins": [
"flow-vars"
],
"rules": {
"flow-vars/define-flow-type": 1,
"flow-vars/use-flow-type": 1
}
}
npm i eslint-plugin-flow-vars
Metadata
- MIT
- Whatever
- Andres Suarez
- released 7/25/2016