Skip to content

lrowe/eslint-plugin-flow-remove-types

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

eslint-plugin-flow-remove-types

A preprocessor to remove Flow type annotations.

Installation

You'll first need to install ESLint:

$ npm install eslint --save-dev

Next, install eslint-plugin-flow-remove-types:

$ npm install eslint-plugin-flow-remove-types --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-flow-remove-types globally.

Usage

Add flow-remove-types to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "flow-remove-types"
    ]
}

Notes

Because of the way flow-remove-types preserves whitespace in the processed files (so that line and column numbers remain accurate), any ESLint rules which check for whitespace (e.g. no-irregular-whitespace and space-in-parens ) will likely break.

About

A preprocessor to remove Flow type annotations.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%