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://gitlab.confirm.ch/confirm/guidelines/raw/master/configs

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