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

@ministryofjustice/eslint-config-fb

Package Overview
Dependencies
Maintainers
13
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ministryofjustice/eslint-config-fb

Form Builder ESLint configuration

  • 1.1.9
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-66.67%
Maintainers
13
Weekly downloads
 
Created
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

Package last updated on 27 Jan 2020

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