@tiddo/flow-json-config

1.0.1 • Public • Published

Utility that transforms a JSON object into a flowconfig file.

Install

npm install -g @tiddo/flow-json-config

Usage:

flow-json-config file.json [configPath] > .flowconfig

configPath is an optional parameter that causes flow-json-config to get its configuration from a subfield of the input JSON. This can for example be used to put the configuration in the package.json:

flow-json-config package.json [configPath] > .flowconfig

Format

{
	"ignore" : [/* ignore path */],
	"include" : [/* include paths */],
	"libs" : [/* lib paths */],
	"options" : {
		"optionKey" : "optionValue",
		"nested" : {
			"subKey" : "subValue"
		}
	}
}

See the examples folder for full examples.

On npm

@tiddo/flow-json-config

Readme

Keywords

none

Package Sidebar

Install

npm i @tiddo/flow-json-config

Weekly Downloads

1

Version

1.0.1

License

MIT

Last publish

Collaborators

  • tiddo