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
- Clone this repo
- Run
bundle install
to setup dependencies. - Run
bundle exec rake spec
to run the tests. - Use
bundle exec guard
to automatically have tests run as you make changes. - 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
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.