eslint-plugin-flow-vars

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

eslint-plugin-flow-vars has been deprecated in favor of eslint-plugin-flowtype@2.4.0 or higher
Last updated 4 years ago by zertosh .
MIT · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install eslint-plugin-flow-vars 
SYNC missed versions from official npm registry.

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

Current Tags

  • 0.5.0                                ...           latest (4 years ago)

11 Versions

  • 0.5.0 [deprecated]           ...           4 years ago
  • 0.4.0                                ...           4 years ago
  • 0.3.0                                ...           4 years ago
  • 0.2.1                                ...           4 years ago
  • 0.2.0                                ...           4 years ago
  • 0.1.3                                ...           5 years ago
  • 0.1.2                                ...           5 years ago
  • 0.1.1                                ...           5 years ago
  • 0.1.0                                ...           5 years ago
  • 0.0.2                                ...           5 years ago
  • 0.0.1                                ...           5 years ago

Copyright 2014 - 2016 © taobao.org |