0.04
Low commit activity in last 3 years
A long-lived project that still receives updates
Pronto runner for stylelint, the mighty, modern CSS linter.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 13.0
~> 3.4

Runtime

>= 0.24, < 2.0
>= 0.10, < 0.12
 Project Readme

Pronto runner for stylelint (using stylelint from npm)

Gem Version Build Status Code Climate Test Coverage

Pronto runner for stylelint, the mighty, modern CSS linter. What is Pronto?

Uses official stylelint executable installed by npm.

Heavily inspired by doits/pronto-eslint_npm.

Prerequisites

You'll need to install stylelint by yourself with npm. If stylelint is in your PATH, everything will simply work, otherwise you have to provide pronto-stylelint your custom executable path (see below).

Configuration of stylelint

Configuring stylelint via .stylelintrc and consorts and excludes via .stylelintignore will work just fine with pronto-stylelint.

Configuration of pronto-stylelint

pronto-stylelint can be configured by placing a .pronto_stylelint.yml inside the directory where pronto is run.

Following options are available:

Option Meaning Default
stylelint_executable stylelint executable to call. stylelint (calls stylelint in PATH)
files_to_lint What files to lint. Absolute path of offending file will be matched against this Regexp. \.(c|sc|sa|le)ss$
cli_options Options to pass to the CLI. -f json

Example configuration to call custom stylelint executable and specify custom options:

# .pronto_stylelint.yml
stylelint_executable: '/my/custom/node/path/.bin/stylelint'
files_to_lint: '\.(c|sc)ss$'
cli_options: '--config /custom/stylelintrc'