Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

check-flow

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

check-flow

A better flow cli with ignoring files from node_modules

  • 1.2.0
  • latest
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

check-flow

npm Maintenance npm David CircleCI Maintainability Test Coverage

A better flow cli with ignoring errors from files which are in node_modules folder and only showing errors from certain files.

Supports flow >= 0.65.0

Installation

yarn install --dev check-flow flow-bin

Usage

In your scripts, run flow-check to validate all of your files with without reporting errors for files inside node_modules. But you don't loose any typing definitions by needing to ignore certain files inside node_modules.

{
  "scripts": { "flow": "check-flow" }
}

Including files

The main argument to the command are globs which should only report errors for. This can be useful to only get errors from a specific directory or for something like https://github.com/okonet/lint-staged. Multiple globs can be specified.

Example: Only show errors for files inside the src directory and which have the js extension.

{
  "scripts": {
    "flow": "check-flow \"src/**/*.js\" \"src/*.js\""
  }
}

Ingoring files

Ignoring files is configured by a .flowignore inside the current working directory.

Example:

# This is a comment
node_modules
dist

Development

Installing dependencies

yarn

Linting & flow

yarn lint

and

yarn flow

Notice: When running flow, this package uses actually this package and compiles the code before to run it.

Before commit, it will also run lint and flow to check for errors.

Testing

yarn test

This will run the tests for every supported flow versions. Don't worry when they take some time because we run 3 tests per supported flow version.

Building

yarn build

This will compile the source code which is located in src/ and output it into bin/.

License

MIT

FAQs

Package last updated on 14 Sep 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc