stylelint

Web Sitehttps://stylelint.io/
LanguageCSS / PostCSS
Supported Version8.2.0

Getting Started

To start using stylelint, enable it in repository setting.

To customize stylelint, put stylelintrc.yaml in your repository.

Dependencies

SideCI supports using plugin and configurations provided as npm packages.

This is experimental and won't work for all configurations.

  1. It tries to find stylelint configuration from YAML file, JSON file, or package.json (sideci.yml can be used to specify the file name)
  2. It lists extends, plugins, and processors from the configuration
  3. It tries to install the packages via npm install $package-name

Configuration via sideci.yml

Example settings for stylelint under stylelint.

linter:
  stylelint:
    options:
      config: lint_yml/mystylelintrc.yaml
      ignore_path: .stylelintignore
      syntax: sugarss
      ignore-disables: true
      report-needless-disables: true
      quiet: true
      glob: '**/*.{css,scss}'

options

This option controls an additional command line options given to stylelint.

config

This option controls a configuration file for stylelint. If you have your own settings file for stylelint, your configuration is available by putting it in this option.
The valid extensions for stylelintrc are .yml, .yaml, .json. Also you can use .stylelintc and package.json for configuration.

ignore_path

This option controls an additional configuration file to exclude from analysis. If you have .stylelintignore, put it in this option.

syntax

This option controls non-standard syntax of PostCSS. You can specify scss, less or sugarss.
By default, non-standard syntaxes are detected .scss, .less and .sss files.

ignore-disables

This option controls whether ignore all disable comments: e.g. /* stylelint-disable block-no-empty */. If you would like to ignore these comments, declare true in this option.

report-needless-disables

This option controls whether report stylelint-disable comments.

quiet

This option controls whether ignore warning severity. When you set true in this option, only rules with error severity are registered.

glob

This option controls file extensions which are inspected by stylelint. By default, **/*.{css,less,scss,sss} files are inspected.