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:

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