flow-to-jshint

0.2.0 • Public • Published

flow-to-jshint Build Status

Convert Facebook's Flow report to JSHint

Installation

$ npm install --save flow-to-jshint

Usage

var report = getMyFlowReport();
var flowToJSHint = require('flow-to-jshint');
console.log(flowToJSHint(report));
// =>
[ { error:
     { reason: 'number - This type is incompatible with',
       code: 'E',
       character: 20,
       line: 3 },
    file: 'hello.js' },
  { error:
    { reason: 'string',
       code: 'E',
       character: 11,
       line: 3 },
    file: 'hello.js' }
]

/flow-to-jshint/

    Package Sidebar

    Install

    npm i flow-to-jshint

    Weekly Downloads

    212

    Version

    0.2.0

    License

    ISC

    Last publish

    Collaborators

    • charliedowler