@hmcts/eslint-config

Shared eslint config for hmcts projects

Stats

StarsIssuesVersionUpdatedCreatedSize
@hmcts/eslint-config
021.4.04 years ago4 years agoMinified + gzip package size for @hmcts/eslint-config in KB

Readme

Build Status npm version

ESLint Config

Custom rules for eslint.

Usage

Add to your package.json:

> yarn add eslint @hmcts/eslint-config

Create a .eslintrc.json which extends this config:

{
  "extends": "@hmcts"
  "env": {
    "es6": true,
    "node": true
  },
  "parserOptions": {
    "sourceType": "module"
  }
}

Create a .eslintignore so your node_modules don't get linted:

node_modules

Run eslint:

> ./node_modules/.bin/eslint .

To see example code that conforms to this style check hmcts/look-and-feel.

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.