Package Exports
- neutrino-preset-flow
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (neutrino-preset-flow) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Neutrino flow preset
neutrino-preset-flow
is a Neutrino preset that adds support for
flow
Requirements
- Node.js v7+
- Yarn or npm client
- Neutrino v8, Neutrino build preset
Installation
neutrino-preset-flow
can be installed via the Yarn or npm clients.
Yarn
yarn add neutrino-preset-flow
npm
npm install --save neutrino-preset-flow
Usage
Add neutrino-preset-flow
to use
in your .neutrinorc.js
.
module.exports = {
use: [
'@neutrino/eslint',
'neutrino-preset-react',
'neutrino-preset-flow',
...
]
};
and then create the .flowconfig
file at the root of your project.
Note: Both neutrino-preset-react
and eslint
are required dependencies (eslint
can be installed using any neutrino plugin that includes it, @neutrino/eslint
, neutrino-preset-prettier-eslint
etc...)
touch .flowconfig
And that's all. For flow
specific usage, see their docs.
For Neutrino usage, refer to their documentation.