JSPM

stylelint

2.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 4953284
  • Score
    100M100P100Q187962F
  • License MIT

Modern CSS linter

Package Exports

  • stylelint
  • stylelint/dist/formatters
  • stylelint/dist/formatters/stringFormatter
  • stylelint/dist/utils
  • stylelint/package.json

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (stylelint) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

stylelint NPM version Travis Build Status AppVeyor Build Status Join the chat at https://gitter.im/stylelint/stylelint

Modern CSS linter.

Features

  • Nearly a hundred rules - from stylistic rules, such as checking the spacing around the colon in declarations, to rules that catch subtle coding mistakes, such as invalid hex colors or overriding shorthand properties.
  • Support for the latest CSS syntax - including custom properties, range context for media features, calc() and nesting.
  • Completely unopinionated - only enable the rules you want and configure them with options to tailor the linter to your needs.
  • Shareable configs - if you don't want to craft your own config you can use a shareable config.
  • Support for plugins - it's easy to create your own rules and add them to the linter.
  • Options validator - so you can be confident that your config is valid.

Example output

Example

Quick start

With stylelint, it's easy to start linting your CSS to enforce your preferred conventions:

  1. Install stylelint: npm install stylelint.
  2. Learn about some rules. No rules are turned on by default, so you only have to learn about the rules you want to enforce; and you can start small, growing your config over time as you have a chance to explore more of the rules.
  3. Create your configuration, probably as a .stylelintrc file.
  4. Decide whether to use the CLI, Node API, or PostCSS plugin.
  5. Lint!

Guides

You'll find more detailed information on using the linter and tailoring it to your needs in our guides:

  • User guide - Usage, configuration and complementary tools.
  • Developer guide - Contributing to stylelint and writing your own plugins & formatters.

Changelog

Contributing

License