Skip to content

Instantly share code, notes, and snippets.

@vladkosinov
Created November 2, 2015 20:45
Show Gist options
  • Save vladkosinov/2d0497be4e9eece144d1 to your computer and use it in GitHub Desktop.
Save vladkosinov/2d0497be4e9eece144d1 to your computer and use it in GitHub Desktop.
How to use stylelint with postcss loader
{
...
module: {
loaders: [
{test: CSS_REGEX, loaders: ['style', 'css', 'postcss']},
]
},
postcss: () => [require('stylelint'), require('postcss-reporter')]
}
@moimikey
Copy link

you need to have rules, even if they're empty:

      require('postcss-import')({
        addDependencyTo: webpack,
        path: ['node_modules', 'src'],
        plugins: [
          require('stylelint')({
            extends: 'stylelint-config-standard',
            rules: []
          })
        ]
      }),
      require('stylelint')({
        extends: 'stylelint-config-standard',
        rules: []
      }),

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment