This package has been deprecated

Author message:

This package is no longer maintained, please use @dhis2/cli-style


3.0.7 • Public • Published

ESLint configuration DHIS2

The single source for your JS code style rules.

This is a config for ESLint.

The current styleguide is based on the AirBnB styleguide. Refer to the AirBnb config file for a view on what this config is based on.

The DHIS2 JS Styleguide differs on a few points which are configured in our own config as overrides

For a more thorough description of the style guide, refer to the AirBnB guide



npm install --save-dev eslint-config-dhis2

or with yarn

yarn add eslint-config-dhis2

Then add a linting npm script to package.json, "scripts" section:

"scripts": {
    "lint": "eslint src"

Lint changed files in your project

When you install this package, a node script called lintchangedfiles.js will be added to the node_modules/.bin directory. This script runs eslint on only the changed and untracked files. This is useful for targeting the most relevant files when working on large projects that have lots of errors. To run the script:


If you prefer, you can also add an npm script to your project for this. For example:

"scripts": {
    "lint": "eslint src",
    "lint-changed": "lintchangedfiles.js"

Package Sidebar


Weekly Downloads






Last publish


  • jenniferjonesarnesen
  • mpolak
  • nicolayr
  • travis4dhis2