Registry /
testing / eslint-plugin-flowtype-errors
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
plugin
✓ import plugin from 'eslint-plugin-flowtype-errors';
✗ import { plugin } from 'eslint-plugin-flowtype-errors';
Default export is the plugin object; named export does not exist.
configs
✓ import { configs } from 'eslint-plugin-flowtype-errors';
✗ import configs from 'eslint-plugin-flowtype-errors/configs';
Named export configs contains recommended and other presets.
ESLint config (recommended)
✓ extends: ['plugin:flowtype-errors/recommended']
✗ extends: ['eslint-plugin-flowtype-errors']
Use the plugin prefix string in extends; do not reference the module directly.
Shows how to install and configure the plugin with ESLint, enabling Flow errors as ESLint errors.
// Install the plugin and required peer dependencies
// npm install --save-dev eslint eslint-plugin-flowtype-errors flow-bin
// .eslintrc.js
module.exports = {
plugins: ['flowtype-errors'],
extends: ['plugin:flowtype-errors/recommended'],
// Optional: specify Flow path or options
settings: {
flowtype: {
onlyFilesWithFlowAnnotation: true,
},
},
};
// Now ESLint will show Flow type errors in your editor
// Example file with Flow:
// @flow
function foo(x: number): string { return x; } // ESLint reports Flow error: string expected number
Errors
Common errors & fixes
Cannot find module 'eslint-plugin-flowtype-errors'
Plugin not installed or not present in node_modules.
fixRun 'npm install --save-dev eslint-plugin-flowtype-errors'.
Error: No such plugin: flowtype-errors
ESLint config references a plugin that is not loaded.
fixAdd 'plugins: ["flowtype-errors"]' to your ESLint config.
Configuration for rule 'flowtype-errors/...' is invalid
Incorrect rule configuration or rule name.
fixCheck that you are using valid rule names like 'flowtype-errors/enforce-min-coverage'.
Audit
Dependencies
eslintrequiredpeer dependency required for ESLint plugin functionality
flow-binrequiredpeer dependency to run Flow and produce errors