Gatsby plugin to add support for stylelint-bare-webpack-plugin.
You need your own stylelint setup. Please have a look at the stylelint website.
The intention of this plugin is to inject stylelint into webpack for gatsbyjs.
yarn add --dev @danbruegge/gatsby-plugin-stylelint
// In your gatsby-config.js
plugins: ["@danbruegge/gatsby-plugin-stylelint"]
If you need to pass options to stylelint
use the plugins options, see
stylelint-bare-webpack-plugin for all available options.
// In your gatsby-config.js
plugins: [
{
resolve: "@danbruegge/gatsby-plugin-stylelint",
options: { files: ["**/*.{js,jsx}"] }
}
]
To see the plugin in action, look at my example project.