Socket
Socket
Sign inDemoInstall

@ministryofjustice/eslint-config-fb

Package Overview
Dependencies
237
Maintainers
13
Versions
17
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @ministryofjustice/eslint-config-fb

Form Builder ESLint configuration


Version published
Maintainers
13
Install size
24.7 MB
Created

Readme

Source

eslint-config-fb

The Form Builder ESLint configuration implements Standard JS and additional rules, outlined below.

Installation

Install from NPM:

npm i -D @ministryofjustice/eslint-config-fb

Usage

Create an .eslintrc file in the root of your package:

{
  "extends": "@ministryofjustice/eslint-config-fb"
}

Rules

  • array-bracket-newline
  • array-bracket-spacing
  • no-extra-parens
  • no-var
  • object-curly-spacing
  • prefer-template
  • quote-props
  • quotes
  • template-curly-spacing

array-bracket-newline

Enforces line breaks after opening and before closing array brackets

array-bracket-spacing

Enforces consistent spacing inside array brackets

no-extra-parens

Ignores extra parentheses (according to conditions)

no-var

Discourages the use of var and encourages the use of const or let

object-curly-spacing

Enforces consistent spacing inside braces of object literals, destructuring assignments, and import/export specifiers

prefer-template

Flags usage of + operators with strings

quote-props

Requires quotes around object literal property names

quotes

Enforces the consistent use of either backticks, double, or single quotes

template-curly-spacing

Maintains consistency around the spacing inside of template literal

FAQs

Last updated on 27 Jan 2020

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc