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 use the config in your project, use the following Makefile
targets:
LINTER_CONFIGS = https://git.confirm.ch/confirm/development-guidelines/raw/master/configs
test-eslint:
curl -sSfLo .eslintrc.yml $(LINTER_CONFIGS)/eslintrc.yml
npx eslint $(BUILD_DIR)/*.js