This package has been deprecated

Author message:

Please install with new package scope @danbruegge/gatsby-plugin-stylelint

gatsby-plugin-stylelint

3.2.0 • Public • Published

gatsby-plugin-stylelint

Gatsby v2 plugin to add support for stylelint-webpack-plugin.

Note

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.

Install

yarn add --dev gatsby-plugin-stylelint

Usage

// In your gatsby-config.js
plugins: ["gatsby-plugin-stylelint"]

Configuration

If you need to pass options to stylelint use the plugins options, see stylelint-webpack-plugin for all available options.

// In your gatsby-config.js
plugins: [
  {
    resolve: "gatsby-plugin-stylelint",
    options: { files: ["**/*.{js,jsx}"] }
  }
]

Example

To see the plugin in action, look at my example project.

/gatsby-plugin-stylelint/

    Package Sidebar

    Install

    npm i gatsby-plugin-stylelint

    Weekly Downloads

    374

    Version

    3.2.0

    License

    MIT

    Unpacked Size

    103 kB

    Total Files

    6

    Last publish

    Collaborators

    • danbruegge