gatsby-plugin-css-modules-flow-types

0.1.2 • Public • Published

gatsby-plugin-css-modules-flow-types

Gatsby plugin for generating Flow types for CSS Modules using css-modules-flow-types.

Usage

Install the plugin:

yarn add gatsby-plugin-css-modules-flow-types

Add it to your gatsby-config.js file:

plugins: [
  'gatsby-plugin-css-modules-flow-types',
]

And that's it!

Now when you import a .module.css file, css-modules-flow-types will automatically create a corresponding .module.css.flow file containing its Flow types. Flow will use it to warn you if you're using class names that aren't defined in the .module.css file.

Package Sidebar

Install

npm i gatsby-plugin-css-modules-flow-types

Weekly Downloads

0

Version

0.1.2

License

MIT

Unpacked Size

3.88 kB

Total Files

7

Last publish

Collaborators

  • silvenon