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

@diesdasdigital/csslint

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@diesdasdigital/csslint

Linter for our CSS architecture

  • 3.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
108
increased by129.79%
Maintainers
1
Weekly downloads
 
Created
Source

csslint npm badge

Linter for diesdas’ CSS architecture.

CSS rules it checks:

  • component name is used on every class as a prefix
  • no multiple nesting in class names, eg .component__one__two is ill-formed
  • animation names should start with the component name: @keyframes my-component__my-animation { ...
  • no type selectors (with the only exception > tag)
  • no id selectors

Screen shot of error messages

Installation

To install all dependencies run:

yarn add @diesdasdigital/csslint --dev

Then you can run use the linter in package.json or via npx.

{
  "scripts": {
    "lint": "csslint 'src/**/*.css'"
  }
}

Collaboration

If you want to make changes to csslint you need to have the following tools:

or you can use a glob pattern like

yarn start '**/*.css'

Ignoring errors

In your projects root folder, create a file named .csslintignore. The files in there will be ignored.

Alternatively you can ignore a single line by writing the following comment in the previous line:

/* csslint-disable-next-line */

For Development

Requirements

  • macOS
  • node (we recommend installing it via nvm)
  • yarn

Note: all of the following commands should be run in the project’s folder.

FAQs

Package last updated on 18 Sep 2019

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