Skip to content

Anthony-Nolan/flow-config-parser

Repository files navigation

Flow Config Parser

Parses .flowconfig files and provides an API for inspecting the configuration.

import fs from 'fs'
import parse from 'flow-config-parser';
const config = parse(fs.readFileSync('.flowconfig', 'utf8'));

console.log(config.get('munge_underscores')); // true
console.log(config.suppressesType('$flowIgnore')); // true
console.log(config.suppressesType('Boolean')); // false
console.log(config.ignoresFile('node_modules/react/react.js')); // true | false
console.log(config.remapModule('foo.scss')); // 'object-shim.js'

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published