Skip to content

Commit

Permalink
Code refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
adrifkat committed Apr 5, 2021
1 parent c3c5ac4 commit 7dee5b1
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 29 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

[Stylelint](https://stylelint.io/) is a static analysis tool for styles. A mighty, modern linter that helps you avoid errors and enforce conventions in your styles.

```shell
composer require --dev adrifkat/grumphp-stylelint-task
```

## npm

1\. Use [npm](https://docs.npmjs.com/about-npm/) to install stylelint and its [`standard configuration`](https://github.com/stylelint/stylelint-config-standard):
Expand All @@ -20,12 +24,6 @@ npm install --save-dev stylelint stylelint-config-standard
}
```

3\. Run stylelint on, for example, all the CSS files in your project:

```shell
npx stylelint "**/*.css"
```

## Config
It lives under the `stylelint` namespace and has the following configurable parameters:

Expand All @@ -41,9 +39,13 @@ grumphp:
max-warnings: 5
quiet: false

parameters:
extensions:
- Adrifkat\GrumPHPStylelint\Extension
services:
Adrifkat\GrumPHPStylelint\StylelintTask:
arguments:
- '@process_builder'
- '@formatter.raw_process'
tags:
- { name: grumphp.task, task: stylelint }

```

Expand Down
20 changes: 0 additions & 20 deletions src/Extension.php

This file was deleted.

File renamed without changes.

0 comments on commit 7dee5b1

Please sign in to comment.