stylelint
=========
We're using `stylelint `_ to do the linting of CSS files.
stylelint 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 `_.
stylelint Makefile
------------------
To run ``stylelint`` in your project, use the following ``Makefile`` target:
.. code-block:: Makefile
LINTER_CONFIGS = https://git.confirm.ch/confirm/guidelines/raw/master/configs
test-stylelint:
curl -sSfLo .stylelintrc.yml $(LINTER_CONFIGS)/stylelintrc.yml
npx stylelint $(BUILD_DIR)/*.js