Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

stylelint-webpack-plugin

Package Overview
Dependencies
Maintainers
2
Versions
55
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stylelint-webpack-plugin

stylelint plugin for webpack

  • 0.4.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
240K
increased by3.97%
Maintainers
2
Weekly downloads
 
Created

What is stylelint-webpack-plugin?

The stylelint-webpack-plugin is a plugin for Webpack that integrates Stylelint, a popular CSS linter, into the Webpack build process. It helps developers enforce consistent coding styles and catch errors in CSS, SCSS, and other style files.

What are stylelint-webpack-plugin's main functionalities?

Linting CSS files

This feature allows you to lint all CSS files in your project. The plugin will check for style errors and enforce coding standards as defined in your Stylelint configuration.

const StylelintPlugin = require('stylelint-webpack-plugin');

module.exports = {
  plugins: [
    new StylelintPlugin({
      files: '**/*.css',
    }),
  ],
};

Linting SCSS files

This feature allows you to lint all SCSS files in your project. The plugin will check for style errors and enforce coding standards as defined in your Stylelint configuration.

const StylelintPlugin = require('stylelint-webpack-plugin');

module.exports = {
  plugins: [
    new StylelintPlugin({
      files: '**/*.scss',
    }),
  ],
};

Custom Stylelint configuration

This feature allows you to specify a custom Stylelint configuration file. The plugin will use the rules defined in the specified configuration file to lint your style files.

const StylelintPlugin = require('stylelint-webpack-plugin');

module.exports = {
  plugins: [
    new StylelintPlugin({
      configFile: '.stylelintrc.json',
    }),
  ],
};

Fixing errors automatically

This feature allows the plugin to automatically fix certain style errors. It can save time by correcting issues that can be automatically resolved according to the Stylelint rules.

const StylelintPlugin = require('stylelint-webpack-plugin');

module.exports = {
  plugins: [
    new StylelintPlugin({
      fix: true,
    }),
  ],
};

Other packages similar to stylelint-webpack-plugin

Keywords

FAQs

Package last updated on 30 Sep 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc