No release in over a year
Report Stylelint issues to PRs
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 2.0
~> 2.14
= 3.0.7
>= 0
~> 10.0
~> 3.4
>= 0

Runtime

 Project Readme

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.