PHPackages                             space48/grumphp-stylelint-task - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. space48/grumphp-stylelint-task

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

space48/grumphp-stylelint-task
==============================

A GrumPHP extension that adds CSS linting support with stylelint.

1.0.1(4y ago)094.4k↓14%1MITPHP

Since Apr 16Pushed 4y ago2 watchersCompare

[ Source](https://github.com/Space48/grumphp-stylelint-task)[ Packagist](https://packagist.org/packages/space48/grumphp-stylelint-task)[ RSS](/packages/space48-grumphp-stylelint-task/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (1)Versions (3)Used By (1)

grumphp-stylelint-task
======================

[](#grumphp-stylelint-task)

Adds a [stylelint](https://stylelint.io/) linting task to [GrumPHP](https://github.com/phpro/grumphp).

Installation
------------

[](#installation)

Install through composer:

```
composer require --dev space48/grumphp-stylelint-task
```

Configuration
-------------

[](#configuration)

Example configuration:

```
# grumphp.yml
grumphp:
  tasks:
    stylelint:
      bin: "node_modules/.bin/stylelint"
      triggered_by: ["css", "scss"]
      allowed_paths:
        - /^resources\/css/
      ignore_paths:
        - /^ignored-folder\/css/
      max_warnings: 3
  extensions:
    - Space48\GrumPHPStylelintTask\Extension
```

Available options:

**bin**

*Default: null*

By default, the task will use `stylelint` from your `$PATH`. Use this option to override that. You can specify a path to the stylelint executable as a string, or a command to execute stylelint as an array, for example, to run stylelint through npx: `bin: ["npx", "stylelint"]`

**triggered\_by**

*Default: \["css", "less", "scss", "sass", "pcss"\]*

Define the list of file extensions that will trigger the stylelint task.

**allowed\_paths**

*Default: \[\]*

This option allows you to specify a list of regex patterns to filter the files that will be linted by the task.

**config**

*Default: null*

Specify an alternative configuration file for stylelint. If not specified, will let stylelint decide which configuration file will be used ([stylelint.io](https://stylelint.io/user-guide/usage/options#configfile)).

**disable\_default\_ignores**

*Default: false*

Prevent stylelint from automatically ignoring files in certain directories, such as `node_modules` ([stylelint.io](https://stylelint.io/user-guide/usage/options#disabledefaultignores)).

**format**

*Default: null*

Specify the output format. Will use stylelint's default output format if not specified. You can find the list of valid options on [stylelint.io](https://stylelint.io/user-guide/usage/options#formatter).

**max\_warnings**

*Default: null*

Specify the maximum number of warnings allowed before the linter will exit with an error ([stylelint.io](https://stylelint.io/user-guide/usage/options#maxwarnings)).

**quiet**

*Default: false*

Output only errors, not warnings ([stylelint.io](https://stylelint.io/user-guide/usage/cli#--quiet--q)).

Changelog
---------

[](#changelog)

See [CHANGELOG.md](CHANGELOG.md).

License
-------

[](#license)

This project is licensed unded the [MIT License](LICENSE.md).

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 50% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~209 days

Total

2

Last Release

1649d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/6fc6deb604a4a18e3d7b9f8d73a8ad52bd8f9556e6d84f6fb0ee76eeee65b330?d=identicon)[space48](/maintainers/space48)

---

Top Contributors

[![stkec](https://avatars.githubusercontent.com/u/3246277?v=4)](https://github.com/stkec "stkec (1 commits)")[![tgerulaitis](https://avatars.githubusercontent.com/u/613076?v=4)](https://github.com/tgerulaitis "tgerulaitis (1 commits)")

### Embed Badge

![Health badge](/badges/space48-grumphp-stylelint-task/health.svg)

```
[![Health](https://phpackages.com/badges/space48-grumphp-stylelint-task/health.svg)](https://phpackages.com/packages/space48-grumphp-stylelint-task)
```

###  Alternatives

[lasselehtinen/laravel-conventions-checker

grumphp config to automatically check conventions for Laravel projects

2210.4k4](/packages/lasselehtinen-laravel-conventions-checker)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
