Skip to content

babel plugin to check if you have added flow annotation to all your files in the project

Notifications You must be signed in to change notification settings

Saket23/flow-annotation-checker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

flow-annotation-checker

flow-annotation-checker is a babel plugin to check if you have added flow annotation to all your files in the project.

This will list all the files which doesn't have flow annotation while building the bundle.

Installation

Using npm

npm install babel-plugin-flow-annotation-checker --save-dev

Using yarn

yarn add --dev babel-plugin-flow-annotation-checker

Usage

Add the plugin to .babelrc

{
  "plugins": ["babel-plugin-flow-annotation-checker"]
}

Build the bundle using webpack or run it using webpack-dev-server (If webpack is being used)

If any file doesn't have flow annotation a warning will be thrown in the terminal

WARNING WARNING!
following file does not have flow annotation
/Users/app/src/index.js

Contributing

Pull requests are welcome.

License

About

babel plugin to check if you have added flow annotation to all your files in the project

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published