Stylelint – CSS linter

Stylelint is a static analysis tool for stylesheets that helps developers identify errors and enforce consistent coding conventions. Its extensive collection of rules examines CSS syntax, declarations, selectors, at-rules and other language constructs, detecting problems that might otherwise go unnoticed until a website is rendered in a browser.

The software provides a configurable analysis framework built around PostCSS. Developers can define their own coding standards, extend shared configurations and apply different rules to particular groups of files. Custom syntax modules allow Stylelint to process stylesheet languages such as SCSS and Less, as well as styles embedded within other document formats.

Stylelint can be invoked from the command line, integrated into source code editors or incorporated into automated development workflows. Its automatic correction facilities reduce the amount of manual work involved in resolving supported rule violations.

This is free and open source software.

Key Features

  • Extensive collection of built-in rules covering modern CSS syntax and features.
  • Detect unknown properties, functions, units, selectors and at-rules.
  • Identify duplicate declarations, invalid property values and redundant constructs.
  • Enforce naming conventions for classes, custom properties and other identifiers.
  • Check selector specificity and nesting depth.
  • Identify deprecated CSS features.
  • Automatically correct supported rule violations.
  • Extend functionality with custom rules and plugins.
  • Share and extend reusable linting configurations.
  • Apply configuration overrides to selected files using glob patterns.
  • Configure individual rule severity levels and diagnostic messages.
  • Suppress selected warnings using stylesheet comments.
  • Report unnecessary or invalid suppression comments.
  • Cache analysis results to avoid repeatedly checking unchanged files.
  • Multiple diagnostic output formats.
  • Command-line interface and programmatic API.
  • Integration with source code editors and continuous integration systems.

Website: github.com/stylelint/stylelint
Support:
Developer: Maxime Thirouin, David Clark & Richard Hallows
License: MIT License

Stylelint is written in JavaScript. Learn JavaScript with our recommended free books and free tutorials.


Related Software

CSS Linter Tools
StylelintCSS linter that helps you avoid errors and enforce conventions
CSSLintCSS code quality tool
SCSS-LintKeep SCSS files clean and readable
CppcheckStatic analysis tool
postcss-bem-linterBEM linter for PostCSS

Read our verdict in the software roundup.


Best Free and Open Source Software LinuxLinks helps you discover the best free and open source software for Linux. Explore our extensive collection of recommended applications, including alternatives to popular proprietary software.

We also publish software reviews, Linux tutorials, hardware reviews, free programming books and articles covering the wider open source community. Browse our Linux resources to discover more.

Know a useful free and open source Linux application we haven't covered? Suggest a program for inclusion.

Has your software been featured on LinuxLinks? Display one of our Featured on LinuxLinks badges on your website or GitHub README.
Subscribe

Please read our Comment Policy before commenting.

Notify of
guest
0 Comments
Oldest
Newest Most Voted