GitHub Action that runs stylelint
Find a file
2019-08-21 22:03:11 +02:00
.gitignore first commit 2019-08-21 22:01:23 +02:00
Dockerfile Update Dockerfile 2019-08-21 22:03:11 +02:00
entrypoint.sh first commit 2019-08-21 22:01:23 +02:00
LICENSE Create LICENSE 2019-08-21 22:02:50 +02:00
README.md first commit 2019-08-21 22:01:23 +02:00

stylelint

GitHub Action that runs stylelint.

Usage

- uses: exelban/stylelint@master

Default values

Configuration file

Action will check if stylelint is already installed. If not, it will install styleling. Also its check if configuration file is exist (.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

License

MIT License