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

  • 1.0.0
  • Source
  • npm
  • Socket score

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

csslint

Linter for our CSS architecture

Css rules it checks:

  • no type selectors (with the only exception > tag)
  • no id selectors
  • 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 { ...

Screen shot of error messages

For Running the linter

To install all dependencies run:

yarn

Then, you can run the linter one a single file

yarn start 'example-css-files/example.css'

or you can use a glob pattern like

yarn start '**/*.css'

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 12 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