mirror of
https://github.com/actions-hub/stylelint.git
synced 2024-11-22 07:50:55 -05:00
GitHub Action that runs stylelint
c5b21d9dac
(doc) Fix typo |
||
---|---|---|
.gitignore | ||
Dockerfile | ||
entrypoint.sh | ||
LICENSE | ||
README.md |
stylelint
GitHub Action that runs stylelint.
Usage
- uses: exelban/stylelint@master
Or use docker image:
- uses: "docker://exelban/stylelint:latest"
Default values
Configuration file
Action will check if stylelint is already installed. If not, it will install stylelint.
Also, its check if the configuration file exists (.stylelintrc
).
By default action use next configuration:
{
"extends": "stylelint-config-standard",
"rules": {
"indentation": 2
}
}
Pattern
If pattern is not provided, action will use default one: *.css
.
- uses: exelban/stylelint@master
with:
args: ./**/*.scss
Indentation
Indentation can be set by environment variable INDENT_SPACES
.
- uses: exelban/stylelint@master
env:
INDENT_SPACES: 4