New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

csslint-loader

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

csslint-loader

CSSLint loader for Webpack

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

csslintloader for webpack

Install

$ npm install csslint-loader

Usage

In your webpack configuration

module.exports = {
  // ...
  module: {
    loaders: [
      {
        css: /\.css$/,
        loader: "style?css!csslint"
      },
      {
        scss: /\.scss$/,
        loader: ExtractTextPlugin.extract("style", "css!postcss!csslint!sass")
      }
    ]
  }
  // ...
}

Options

You can pass the following options as a query string

  • configFile (default: looks for .csslintrc in your root directory.)
    Pass in the location/name of file if different
loader: "style?css?csslint?configFile=./config/cs"
  • failOnWarning (default: true)
    If you don't pass in any config file, csslint's default setting sets all rules to 1 (warning)
    Forcing an error by default on warnings. Can disable by passing false as value
loader:"style?css?csslint?failOnWarning=false"
  • failOnError (default: true)
    Passing this as true will fail the build and give the correct exit status

Keywords

FAQs

Package last updated on 26 May 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