Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/stylelint/stylelint
A mighty CSS linter that helps you avoid errors and enforce conventions.
https://github.com/stylelint/stylelint
css enforce-conventions lint linter postcss
Last synced: 5 days ago
JSON representation
A mighty CSS linter that helps you avoid errors and enforce conventions.
- Host: GitHub
- URL: https://github.com/stylelint/stylelint
- Owner: stylelint
- License: mit
- Created: 2014-12-04T16:25:23.000Z (about 10 years ago)
- Default Branch: main
- Last Pushed: 2025-01-05T12:25:38.000Z (6 days ago)
- Last Synced: 2025-01-05T15:19:05.373Z (6 days ago)
- Topics: css, enforce-conventions, lint, linter, postcss
- Language: JavaScript
- Homepage: https://stylelint.io
- Size: 32.5 MB
- Stars: 11,089
- Watchers: 99
- Forks: 939
- Open Issues: 147
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
- Support: SUPPORT.md
Awesome Lists containing this project
- awesome - stylelint/stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions. (JavaScript)
- awesome - stylelint - A mighty, modern style linter (JavaScript)
- awesome-nodejs - stylelint - Mighty, modern linter that helps you avoid errors and enforce conventions in your styles. ![](https://img.shields.io/github/stars/stylelint/stylelint.svg?style=social&label=Star) (Repository / Linter & Formatter)
- awesome-starred-test - stylelint/stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions. (JavaScript)
- awesome-list - stylelint
- awesome-remark - stylelint - Mighty, modern style linter. (Built with remark)
- StarryDivineSky - stylelint/stylelint
- awesome-starred - stylelint/stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions. (JavaScript)
- awesome-starred - stylelint/stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions. (JavaScript)
- awesome - stylelint/stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions. (JavaScript)
- awesome - stylelint/stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions. (JavaScript)
- stars - stylelint/stylelint - A mighty CSS linter that helps you avoid errors and enforce conventions. \[*MIT License*\] (⭐️11088) (JavaScript)
README
# Stylelint
[![npm version](https://img.shields.io/npm/v/stylelint?logo=npm&logoColor=fff)](https://www.npmjs.com/package/stylelint)
[![Build Status](https://github.com/stylelint/stylelint/workflows/Testing/badge.svg)](https://github.com/stylelint/stylelint/actions/workflows/testing.yml?query=branch%3Amain)
[![npm downloads](https://img.shields.io/npm/dm/stylelint)](https://npmcharts.com/compare/stylelint?minimal=true)A mighty CSS linter that helps you avoid errors and enforce conventions.
## Features
It's mighty as it:
- has over **100 built-in rules** for modern CSS syntax and features
- supports **plugins** so you can create your own custom rules
- automatically **fixes problems** where possible
- supports **shareable configs** that you can create or extend
- can **be customized** to your exact needs
- has **15k unit tests** making it robust
- is **trusted by companies worldwide** like Google and GitHubAnd it can be extended to:
- extract **embedded styles** from HTML, Markdown and CSS-in-JS template literals
- parse **CSS-like languages** like SCSS, Sass, Less and SugarSS## How it'll help you
It'll help you **avoid errors**, for example:
- invalid things, e.g. malformed grid areas
- valid things that are problematic, e.g. duplicate selectors
- unknown things, e.g. misspelled property namesAnd **enforce conventions**, for example:
- disallow things, e.g. specific units
- enforce naming patterns, e.g. for custom properties
- set limits, e.g. the number of ID selectors
- specify notations, e.g. for modern color functionsWe recommend using a pretty printer like Prettier alongside Stylelint. Linters and pretty printers are complementary tools that work together to help you write consistent and error-free code.
## Example output
![Example](example.png)
## Guides
- User guide
- [Getting started](docs/user-guide/get-started.md)
- [Customizing](docs/user-guide/customize.md)
- [Configuring](docs/user-guide/configure.md)
- [Rules](docs/user-guide/rules.md)
- [Ignoring code](docs/user-guide/ignore-code.md)
- [CLI](docs/user-guide/cli.md)
- [Node.js API](docs/user-guide/node-api.md)
- [PostCSS plugin](docs/user-guide/postcss-plugin.md)
- [Options](docs/user-guide/options.md)
- [Errors & warnings](docs/user-guide/errors.md)
- Developer guide
- [Writing rules](docs/developer-guide/rules.md)
- [Writing plugins](docs/developer-guide/plugins.md)
- [Writing custom syntaxes](docs/developer-guide/syntaxes.md)
- [Writing custom formatters](docs/developer-guide/formatters.md)
- [Writing system tests](docs/developer-guide/system-tests.md)
- Migration guide
- [Migrating to 16.0.0](docs/migration-guide/to-16.md)
- [Migrating to 15.0.0](docs/migration-guide/to-15.md)
- [Migrating to 14.0.0](docs/migration-guide/to-14.md)
- Maintainer guide
- [Managing issues](docs/maintainer-guide/issues.md)
- [Managing pull requests](docs/maintainer-guide/pull-requests.md)
- [Performing releases](docs/maintainer-guide/releases.md)
- About
- [Vision](docs/about/vision.md)
- [Governance](docs/about/governance.md)
- [Semantic versioning](docs/about/semantic-versioning.md)## Contributors
Stylelint is maintained by volunteers. Without the code contributions from [all these fantastic people](https://github.com/stylelint/stylelint/graphs/contributors), Stylelint would not exist. [Become a contributor](CONTRIBUTING.md).
### Alumni
We'd like to thank all past members for their invaluable contributions, including two of Stylelint's co-creators [@davidtheclark](https://github.com/davidtheclark) and [@MoOx](https://github.com/MoOx).
### Sponsors
Thank you to all our sponsors! [Become a sponsor](https://opencollective.com/stylelint).
### Backers
Thank you to all our backers! [Become a backer](https://opencollective.com/stylelint).
### Website hosting
[![Deploys by Netlify](https://www.netlify.com/img/global/badges/netlify-color-accent.svg)](https://www.netlify.com)
## License
[The MIT License](https://raw.githubusercontent.com/stylelint/stylelint/main/LICENSE).