ESLint plugin providing Flowtype linting rules, maintained by the flow-typed community as a fork of the original eslint-plugin-flowtype. Current version 3.0.11, with regular releases every few months. Unlike the original plugin, it is actively maintained, supports ESLint 9 flat config, and includes additional rules like `no-duplicate-type-union-intersection-members` and `sort-type-union-intersection-members`. Requires `eslint` ^8.56.0 or ^9.0.0 and optionally `hermes-eslint` >=0.15.0.
npm install eslint-plugin-ft-flowVerified import paths — ran on the pinned version, not inferred.
Show how to set up eslint-plugin-ft-flow with ESLint flat config, enabling a few rules for Flowtype linting.
Use import statement instead of require().
Use the recommended rule set and migrate deprecated rules.
Add 'no-unused-vars': 'off' or configure appropriately.
Install hermes-eslint@^0.15.0 if you need Hermes parsing.
Use eslint.config.js flat config; for .eslintrc use version <3.0.0.
Use only one config format; remove .eslintrc.* if using eslint.config.js.
Update eslint to ^8.56.0 or ^9.0.0 and eslint-plugin-ft-flow to >=3.0.10.
Run npm install eslint-plugin-ft-flow --save-dev
Set 'sourceType': 'module' in ESLint config or use .mjs extension.