ESLint
======
We're using `ESLint `_ to do the linting of JavaScript files.
ESLint config
-------------
Please have a look at the latest `ESLint config `_ for all the configured options.
.. hint::
To see all available rules, have a look at the `ESLint documentation `_.
ESLint Makefile
---------------
To run ``eslint`` in your project, use the following ``Makefile`` target:
.. code-block:: Makefile
LINTER_CONFIGS = https://git.confirm.ch/confirm/guidelines/raw/master/configs
test-eslint:
curl -sSfLo .eslintrc.yml $(LINTER_CONFIGS)/eslintrc.yml
npx eslint $(BUILD_DIR)/*.js