Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

stylelint-cli

whizark12.6kMIT1.3.0

Global CLI wrapper to execute a local stylelint

stylelint, style, css, sass, scss, less, lint, cli

readme

stylelint-cli

npm Build Status

Global CLI wrapper to execute a local stylelint :octocat:.

Installation

First, uninstall global stylelint if you have ever installed stylelint as a global package.

npm uninstall -g stylelint

Then, install stylelint-cli as a global package.

npm install -g stylelint-cli

Usage

You should install stylelint as a local package in your package directory.

npm install --save-dev stylelint

Now, you can run your local stylelint by global stylelint-cli.

stylelint style.css

For more detail, see also the official stylelint documentation :octocat:.