eslint-plugin-flow-check

1.2.0 • Public • Published

Integrate flowtype with eslint

eslint-plugin-flow-check stability

npm version

  • 💯 Integrating with eslint means integrating with everything
  • 💪 Use one tool to check and lint your code
  • 👀 Check only files you care about

Installation

npm install --save-dev eslint \
  babel-eslint \
  eslint-plugin-flow-check

Usage

Configure eslint to use babel-eslint and eslint-plugin-flow-check. Make sure to enable the plugin via its rule.

{
  "eslintConfig": {
    "rules": {
      "flow-check/check": 2
    },
    "parser": "babel-eslint",
    "plugins": ["flow-check"]
  }
}

Create a .flowconfig in your project root. See the flow-type docs for details.

flow init

Add the flow pragma to all files you want to typecheck.

// @flow

Built by (c) marionebl. Released under the MIT license.

/eslint-plugin-flow-check/

    Package Sidebar

    Install

    npm i eslint-plugin-flow-check

    Weekly Downloads

    27

    Version

    1.2.0

    License

    MIT

    Last publish

    Collaborators

    • marionebl