Skip to content

nimblehq/danger-stylelint

Repository files navigation

Nimble logo

Danger Stylelint

A Plugin for Ruby or Ruby on Rails projects to warn CSS issues. The checks are performed using Stylelint


Prerequisites

To use this plugin, your project must have successfully setup Danger

You would also need to install stylelint into your project

$ npm install -D stylelint

Installation

Simply run the following in your project.

$ gem install danger-stylelint

Usage

To use the extension, add the following to your Dangerfile

stylelint.lint

Options

Options Required Default Value Description
stylelint.config_file No nil Path to a Stylelint configuration file.
stylelint.changes_only No false Comment only on changed lines
stylelint.bin_path No ./node_modules/.bin/stylelint Path to the node installation of Stylelint

To use an option, add it before running stylelint

stylelint.config_file = "./.stylelintrc"
stylelint.lint

Development

  1. Clone this repo
  2. Run bundle install to setup dependencies.
  3. Run bundle exec rake spec to run the tests.
  4. Use bundle exec guard to automatically have tests run as you make changes.
  5. Make your changes.

License

This project is Copyright (c) 2014-2022 Nimble. It is free software, and may be redistributed under the terms specified in the LICENSE file.

About

Nimble

This project is maintained and funded by Nimble.

We love open source and do our part in sharing our work with the community! See our other projects or hire our team to help build your product.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages