🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

@hmcts/eslint-config

Package Overview
Dependencies
Maintainers
14
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@hmcts/eslint-config

Shared eslint config for hmcts projects

1.4.0
latest
Source
npm
Version published
Maintainers
14
Created
Source

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.

FAQs

Package last updated on 10 Jan 2018

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