🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

stylelint-bare-webpack-plugin

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-bare-webpack-plugin

Webpack plugin wrapper for stylelint allowing you to install any version of stylelint you want

2.1.0
latest
Source
npm
Version published
Maintainers
1
Created
Source

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.

Keywords

stylelint

FAQs

Package last updated on 03 Nov 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts