{"id":19757,"library":"eslint-plugin-flowtype-errors","title":"ESLint Plugin Flowtype Errors","description":"An ESLint plugin that wraps Flow errors and displays them as ESLint errors. Version 4.5.0 is the latest stable release. It allows any editor with ESLint support to also show Flow type errors, reducing configuration complexity by eliminating the need for a separate Flow linter integration. Maintained actively with frequent dependency updates. Supports Flow >=0.93.0 and ESLint >=5.16.0. Only works on 64-bit operating systems; Windows 32-bit is not supported.","status":"active","version":"4.5.0","language":"javascript","source_language":"en","source_url":"https://github.com/amilajack/eslint-plugin-flowtype-errors","tags":["javascript","eslint","flow","plugin","errors"],"install":[{"cmd":"npm install eslint-plugin-flowtype-errors","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-flowtype-errors","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-flowtype-errors","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"peer dependency required for ESLint plugin functionality","package":"eslint","optional":false},{"reason":"peer dependency to run Flow and produce errors","package":"flow-bin","optional":false}],"imports":[{"note":"Default export is the plugin object; named export does not exist.","wrong":"import { plugin } from 'eslint-plugin-flowtype-errors';","symbol":"plugin","correct":"import plugin from 'eslint-plugin-flowtype-errors';"},{"note":"Named export configs contains recommended and other presets.","wrong":"import configs from 'eslint-plugin-flowtype-errors/configs';","symbol":"configs","correct":"import { configs } from 'eslint-plugin-flowtype-errors';"},{"note":"Use the plugin prefix string in extends; do not reference the module directly.","wrong":"extends: ['eslint-plugin-flowtype-errors']","symbol":"ESLint config (recommended)","correct":"extends: ['plugin:flowtype-errors/recommended']"}],"quickstart":{"code":"// Install the plugin and required peer dependencies\n// npm install --save-dev eslint eslint-plugin-flowtype-errors flow-bin\n\n// .eslintrc.js\nmodule.exports = {\n  plugins: ['flowtype-errors'],\n  extends: ['plugin:flowtype-errors/recommended'],\n  // Optional: specify Flow path or options\n  settings: {\n    flowtype: {\n      onlyFilesWithFlowAnnotation: true,\n    },\n  },\n};\n\n// Now ESLint will show Flow type errors in your editor\n// Example file with Flow:\n// @flow\nfunction foo(x: number): string { return x; } // ESLint reports Flow error: string expected number","lang":"javascript","description":"Shows how to install and configure the plugin with ESLint, enabling Flow errors as ESLint errors."},"warnings":[{"fix":"Install a 64-bit version of your operating system.","message":"Only 64-bit OS is supported. 32-bit operating systems, especially Windows 32-bit, will fail to run Flow.","severity":"gotcha","affected_versions":">=4.0.0"},{"fix":"Update your ESLint config extends to 'plugin:flowtype-errors/recommended'.","message":"Version 4.0.0 changed the plugin export structure. The recommended config is now under 'plugin:flowtype-errors/recommended' instead of previous paths.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Use 'plugins: [\"flowtype-errors\"]' or specifiy full package name if necessary.","message":"The 'flowtype-errors' plugin ID is deprecated in favor of 'eslint-plugin-flowtype-errors' in ESLint config.","severity":"deprecated","affected_versions":">=4.0.0"},{"fix":"Upgrade flow-bin to >=0.93.0.","message":"Peer dependency flow-bin must be >=0.93.0. Older versions of Flow are not supported.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Upgrade ESLint to >=5.16.0.","message":"Peer dependency eslint must be >=5.16.0. Older ESLint versions are incompatible.","severity":"breaking","affected_versions":">=4.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install --save-dev eslint-plugin-flowtype-errors'.","cause":"Plugin not installed or not present in node_modules.","error":"Cannot find module 'eslint-plugin-flowtype-errors'"},{"fix":"Add 'plugins: [\"flowtype-errors\"]' to your ESLint config.","cause":"ESLint config references a plugin that is not loaded.","error":"Error: No such plugin: flowtype-errors"},{"fix":"Check that you are using valid rule names like 'flowtype-errors/enforce-min-coverage'.","cause":"Incorrect rule configuration or rule name.","error":"Configuration for rule 'flowtype-errors/...' is invalid"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}