2.1.0 • Published 4 years ago

stylelint-bare-webpack-plugin v2.1.0

Weekly downloads
5,047
License
MIT
Repository
github
Last release
4 years ago

Stylelint Bare Webpack Plugin

npm npm license

This webpack plugin allows you to lint your CSS/SASS/SCSS/LESS etc. files through any version of Stylelint. It is heavily inspired by stylelint-webpack-plugin with the key difference being that stylelint isn't included in this package, allowing you to use any version you want instead of waiting on the webpack plugin to be updated to the newest version.

Compatibility
Version ^1.0.0 of this plugin is compatible with webpack ^4.0.0. If you're using an older version of webpack, make sure to install the ^0.1.0 (npm install stylelint-bare-webpack-plugin@^0.1.0) release of this plugin.

Installation

npm install stylelint-bare-webpack-plugin stylelint --save-dev

Usage

// webpack.config.js
const StylelintBarePlugin = require('stylelint-bare-webpack-plugin');

module.exports = {
    // ...
    plugins: [
        new StylelintBarePlugin({
            // Optional options object
        })
    ]
}

Options

You can pass an object containing several options to StylelintBarePlugin(), this object can contain the following keys and any key that can be passed to stylelint as well.

OptionDefaultDescription
files'**/*.s?(c\|a)ss'glob used for finding the files that will be linted
emitErrorstrueWhether to emit webpack errors or only warnings, note that all stylelint errors will still be shown when disabling this
failOnErrorfalseWhether to stop the entire Webpack process when a stylelint error is found
formatterstringFormatter from StylelintFormatter used to display warnings/errors in console

License

This project is licensed under the MIT license.

2.1.0

4 years ago

2.0.2

4 years ago

2.0.1

4 years ago

2.0.0

4 years ago

1.1.4

4 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago

1.0.0-rc.1

6 years ago

0.1.3

7 years ago

0.1.2

8 years ago

0.1.1

8 years ago

0.1.0

8 years ago