1.1.9 • Published 5 years ago

@ministryofjustice/eslint-config-fb v1.1.9

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

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

1.1.9

5 years ago

1.1.8

6 years ago

1.1.6

6 years ago

1.1.5

6 years ago

1.1.4

6 years ago

1.1.2

6 years ago

1.1.1

6 years ago

1.1.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago