stylelint

We’re using stylelint to do the linting of CSS files.

Config

Please have a look at the latest stylelint config for all the configured options.

Hint

To see all available rules, have a look at the stylelint documentation.

Makefile

To use the config in your project, use the following Makefile targets:

LINTER_CONFIGS = https://git.confirm.ch/confirm/development-guidelines/raw/master/configs

test-stylelint:
    curl -sSfLo .stylelintrc.yml $(LINTER_CONFIGS)/stylelintrc.yml
    npx stylelint $(BUILD_DIR)/*.js