@hmcts/eslint-config

1.4.0 • Public • Published

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.

/@hmcts/eslint-config/

    Package Sidebar

    Install

    npm i @hmcts/eslint-config

    Weekly Downloads

    1,168

    Version

    1.4.0

    License

    MIT

    Last publish

    Collaborators

    • timja
    • andrewwa-kainos
    • bendiggle
    • ellie-harrison
    • adrianc
    • hemantt
    • adamsilver
    • trevorsaint
    • timja-hmcts
    • dharmendrak
    • robertparkinson
    • pragnesh
    • damdun
    • p.jar
    • sabah.irfan
    • jenkins-reform-hmcts