Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-flow-vars

zertosh35.6kMITdeprecated0.5.0

eslint-plugin-flow-vars has been deprecated in favor of eslint-plugin-flowtype@2.4.0 or higher

Solves the problem of false positives with no-undef and no-unused-vars when using babel-eslint

eslint, eslint-plugin, eslintplugin, flow, flow-type, flowtype

readme

eslint-plugin-flow-vars

Build Status

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
  }
}