awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
stylelint avatar

stylelint/stylelint

0
View on GitHub↗
11,484 stars·1,010 forks·JavaScript·MIT·29 viewsstylelint.io↗

Stylelint

Stylelint is a static code analysis tool and linter for CSS and style-like languages. It identifies errors, enforces coding conventions, and operates as a PostCSS plugin to validate stylesheets during build pipelines.

The project distinguishes itself through support for non-standard syntaxes, including preprocessor parsing for SCSS and Less, and the ability to extract and lint embedded styles from JavaScript, HTML, and template literals. It features an automated fixing system that programmatically corrects repairable styling violations to ensure consistency.

The system provides a plugin architecture for creating custom rules, syntaxes, and formatters. It covers a broad range of quality assurance capabilities, including the prevention of deprecated syntax, selector specificity validation, and the enforcement of naming patterns and stylistic conventions. Configuration is managed through a cascading merge logic that supports shareable presets and file-specific overrides.

The tool is accessible via a command-line interface, a programmatic API, and various editor integrations.

Features

  • Stylesheet Analysis CLIs - Provides a command-line tool for scanning stylesheets to identify errors and enforce coding conventions.
  • Code Quality Tools - Identifies syntax errors and enforces consistent coding conventions across stylesheets to prevent bugs.
  • Static Code Analysis Tools - Implements a system that scans stylesheets for syntax errors and problematic patterns without executing the code.
  • Linting Error Corrections - Automatically corrects repairable coding problems to maintain consistency across stylesheets.
  • Command Line Interfaces - Provides a ready-to-run command-line application for executing style analysis and managing configuration.
  • CSS AST Analysis - Analyzes CSS stylesheets using abstract syntax trees generated via PostCSS to evaluate code structure.
  • CSS and Preprocessor Formatting - Automatically corrects repairable styling violations and convention errors to maintain a clean codebase.
  • Custom Style Syntaxes - Supports non-standard style languages and preprocessors through a modular custom parsing architecture.
  • Syntax Validation - Verifies the grammatical correctness of stylesheets through AST analysis to detect malformed code or custom syntax.
  • CSS Style Enforcement - Enforces consistency and syntax standards specifically for CSS and style-like languages.
  • Plugin-Based Rule Engines - Implements a modular architecture where individual linting rules are encapsulated as decoupled plugin modules.
  • Automatic Lint Fixes - Automatically corrects formatting and style violations detected during linting without requiring manual intervention.
  • Extensible Plugin Architectures - Implements a modular architecture for creating custom rules, syntaxes, and formatters via plugins.
  • CSS Preprocessor Parsing - Parses CSS preprocessor syntaxes such as SCSS and Less into structured trees for analysis.
  • Automated Code Fixers - Provides a utility that automatically corrects repairable styling violations to ensure consistency.
  • CSS Linters - Provides a validator that supports non-standard syntaxes like SCSS and Less for style linting.
  • CSS Linting - Analyzes non-standard syntaxes like SCSS and Less to apply validation rules to pre-processed styles.
  • CSS Syntax Error Detection - Identifies malformed CSS values, such as invalid hex codes or media queries, that cause browser parsing errors.
  • Style Extraction - Locates and extracts style definitions embedded within non-CSS files like HTML, Markdown, or template literals for analysis.
  • PostCSS Pipeline Integration - Integrates stylesheet analysis as a plugin within a PostCSS processing pipeline to validate CSS during builds.
  • Shareable Configurations - Supports the creation and inheritance of reusable rule sets to maintain consistency across projects.
  • Analysis Result Caches - Stores intermediate analysis results for unchanged files to avoid redundant processing and improve performance.
  • Automated Code Fix Suggestions - Provides actionable code change suggestions by identifying character ranges and replacement text to resolve styling violations.
  • Editor Integrations - Connects linting feedback and error highlighting directly into the editor workflow via extensions.
  • Custom Lint Rule Plugins - Provides a plugin interface for adding custom lint rules and embedded style support.
  • Custom Lint Rule Definitions - Provides interfaces for defining custom rules to enforce team-specific CSS and style standards.
  • Style Syntax Definitions - Allows modification of the parser to recognize specialized CSS at-rules, keywords, and units.
  • Lint Result Formatters - Transforms lint results into multiple output formats like JSON, XML, or TAP for integration with build systems.
  • Configuration Cascade Resolutions - Implements logic to determine the final active rule set by merging hierarchical configuration layers.
  • CSS Syntax Deprecation - Identifies and blocks outdated CSS properties and selectors to ensure compatibility with modern standards.
  • Duplicate Declaration Preventions - Identifies and prevents redundant property or selector declarations within stylesheets to reduce code bloat.
  • Language-Specific Formatting Overrides - Allows specification of different syntaxes and rule sets for specific file patterns to support multiple languages.
  • Property and Element Restrictions - Enforces constraints on which CSS properties, functions, or pseudo-classes are permitted using allow-lists and deny-lists.
  • Property Value Constraints - Enforces limits on the number of values assigned to a specific CSS property using regular expressions.
  • CSS Redundancy Removal - Identifies and blocks unnecessary longhand properties or redundant nested rules in stylesheets.
  • Recursive Configuration Merging - Deeply merges global configurations with file-specific overrides to create a final resolved settings tree.
  • Unknown Identifier Detection - Flags unrecognized CSS properties, functions, and pseudo-elements to prevent typos and non-standard usage.
  • Rule Suppression Comments - Uses inline source code comments to disable specific linting rules for targeted lines or blocks.
  • Warning Threshold Enforcers - Fails the build process when the number of emitted warnings exceeds a specified limit in CI.
  • Lint Rule Severity Levels - Allows definition of rule activity and severity levels (error, warning, or off) via configuration.
  • Lint Result Formatters - Transforms lint analysis results into multiple output formats for integration with editors, CI systems, and build pipelines.
  • Selector Complexity Limits - Constrains the number of IDs, classes, or attributes in a CSS selector to optimize browser performance.
  • CSS Property Value Validations - Flags property-value pairs that do not exist in specifications to ensure valid stylesheet syntax.
  • Selector Specificity Restrictions - Ensures selectors adhere to maximum specificity thresholds to maintain a manageable CSS architecture.
  • CSS-in-JS Extraction - Locates and extracts CSS styles embedded within JavaScript template literals or HTML for linting.
  • Vendor Prefix Restrictions - Disallows the use of vendor-prefixed properties and selectors to encourage adherence to standard CSS specifications.
  • Code Quality Tools - Modern CSS and style sheet linting tool.
  • Web Frameworks - Linter for enforcing style conventions.

Star history

Star history chart for stylelint/stylelintStar history chart for stylelint/stylelint

How this analysis was created: This summary and feature list are AI-generated from collected project material and can contain mistakes. Stars, license and language are imported from GitHub. Inclusion does not mean that we have tested or audited this project. Check the source documentation for any feature you depend on. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Projects sharing features with Stylelint

These projects share indexed features with Stylelint. Shared tags can include platform or build tooling; verify the primary use case before treating a result as a replacement.
  • csslint/csslintCSSLint avatar

    CSSLint/csslint

    4,805View on GitHub↗

    This project is a CSS linter and static analysis tool designed to identify syntax errors, logic flaws, and problematic patterns in Cascading Stylesheets. It functions as a command line validator that verifies code quality and enforces consistent styling and coding standards without requiring a web browser. The analyzer distinguishes itself by incorporating web accessibility auditing to detect patterns that hinder users with disabilities. It also performs browser compatibility checking to identify non-standard hacks and missing vendor prefixes, and provides performance optimization analysis to

    JavaScript
    View on GitHub↗4,805
  • checkstyle/checkstylecheckstyle avatar

    checkstyle/checkstyle

    8,867View on GitHub↗

    Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best practices. It functions as a code quality auditor and Javadoc validation tool, checking source code against configurable rulesets to ensure structural and stylistic consistency. The project allows for the creation of custom linting rules by extending a core API to inspect the abstract syntax tree. It further enables specialized validation through the use of XPath expressions to query the syntax tree for specific code patterns and violations. Capability areas include the enforcement

    Javacode-qualitycommand-line-toolhacktoberfest
    View on GitHub↗8,867
  • brigade/scss-lintbrigade avatar

    brigade/scss-lint

    3,668View on GitHub↗

    scss-lint is a static analysis tool and configurable style validator for SCSS stylesheets. It identifies syntax errors and enforces coding style consistency in CSS preprocessor files before they are compiled. The project provides an extensibility system for loading custom linting rules from local directories or external libraries. It allows for the definition of project-specific style standards and supports the creation of baseline configurations to facilitate incremental code cleanup. The tool includes capabilities for source control management hook integration and source preprocessing via

    Ruby
    View on GitHub↗3,668
  • standard/standardstandard avatar

    standard/standard

    29,431View on GitHub↗

    Standard is a suite of static analysis tools for JavaScript, comprising a linter, formatter, and a predefined style guide. It functions as a static code analyzer that scans source code for style violations and potential errors without executing the program. The project provides an automatic code fixer that rewrites source code to resolve formatting issues and enforce syntax consistency. It implements a standardized set of rules for JavaScript formatting and syntax to ensure a uniform appearance across different projects. The system covers a wide range of static analysis capabilities, includi

    JavaScriptdevelopmentecmascriptes6
    View on GitHub↗29,431
Compare all 30 related projects→

Frequently asked questions

What does stylelint/stylelint do?

Stylelint is a static code analysis tool and linter for CSS and style-like languages. It identifies errors, enforces coding conventions, and operates as a PostCSS plugin to validate stylesheets during build pipelines.

What are the main features of stylelint/stylelint?

The main features of stylelint/stylelint are: Stylesheet Analysis CLIs, Code Quality Tools, Static Code Analysis Tools, Linting Error Corrections, Command Line Interfaces, CSS AST Analysis, CSS and Preprocessor Formatting, Custom Style Syntaxes.

Which projects share features with stylelint/stylelint?

Projects with overlapping indexed features include: csslint/csslint — This project is a CSS linter and static analysis tool designed to identify syntax errors, logic flaws, and problematic… checkstyle/checkstyle — Checkstyle is a Java static analysis tool and linter designed to identify and enforce coding standards and best… brigade/scss-lint — scss-lint is a static analysis tool and configurable style validator for SCSS stylesheets. It identifies syntax errors… standard/standard — Standard is a suite of static analysis tools for JavaScript, comprising a linter, formatter, and a predefined style… feross/standard — Standard is a zero-configuration static analyzer, linter, and formatter for JavaScript. It functions as a style guide… webhintio/hint — Hint is a web development linter and static analysis tool that audits HTML, CSS, and JavaScript. It provides a suite…