1. eslint-plugin-flowtype-errors
Retrieve Flow errors as ESLint errors.
eslint-plugin-flowtype-errors
Package: eslint-plugin-flowtype-errors
Created by: amilajack
Last modified: Fri, 17 Jun 2022 20:31:21 GMT
Version: 4.5.0
Downloads: 53,745
Repository: https://github.com/amilajack/eslint-plugin-flowtype-errors

Install

npm install eslint-plugin-flowtype-errors
yarn add eslint-plugin-flowtype-errors

eslint-plugin-flowtype-errors

Test
NPM version
Dependency Status
npm

Demo

ESLint Flow Demo

Why?

  • Lower barrier: Any editor that has ESLint support now supports Flow šŸŽ‰
  • Less editor configuration: No need to change your entire workflow to incorporate flow. No multiple-linters-per-file nonsense.
  • Simple: It's literally just an ESLint rule! Just install the dependency, add a flowconfig, and you're good to go!

Getting Started

This guide assumes that you have installed eslint, babel, babel-plugin-transform-flow-strip-types and configured flow. Check out the from-scratch guide for the full guide on getting started.

āš ļø Make sure the 64-bit version of your text editor or IDE. For atom, see this comment

1. Install

 npm install --save-dev eslint-plugin-flowtype-errors

2. Configure

Extend the recommended config:

{
  "extends": ["plugin:flowtype-errors/recommended"]
}

Support

If this project is saving you (or your team) time, please consider supporting it on Patreon šŸ‘ thank you!

CI Configuration

Flow is supported on all OS's except Windows 32bit. Add this line to appveyor to make tests run properly.

RELATED POST

10 Must-Know Windows Shortcuts That Will Save You Time

10 Must-Know Windows Shortcuts That Will Save You Time

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Arrays vs Linked Lists: Which is Better for Memory Management in Data Structures?

Navigating AWS Networking: Essential Hacks for Smooth Operation

Navigating AWS Networking: Essential Hacks for Smooth Operation

Achieving Stunning Visuals with Unity's Global Illumination

Achieving Stunning Visuals with Unity's Global Illumination

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code

Nim's Hidden Gems: Lesser-known Features for Writing Efficient Code