Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

eslint-config-dhis2

Package Overview
Dependencies
Maintainers
4
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-config-dhis2

ESLint config for DHIS2 JS projects, based on AirBnB's eslint config

  • 3.0.7
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
4
Created
Source

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

Usage

Install

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:

./node_modules/.bin/lintchangedfiles.js

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"
}

Keywords

FAQs

Package last updated on 21 Sep 2017

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc