eslint-config-iplayer

9.2.0 • Public • Published

eslint-config-iplayer

The main eslint config for BBC iPlayer

Installation

npm install --save-dev eslint-config-iplayer

Usage

Adding the following to your eslintConfig in package.json will import the iPlayer ES6 config rules:

{
  "eslintConfig": {
    "extends": "iplayer"
  }
}

jsx rules:

{
  "eslintConfig": {
    "extends": "iplayer/jsx"
  }
}

ts rules:

{
  "eslintConfig": {
    "extends": "iplayer/ts"
  }
}

tsx rules:

{
  "eslintConfig": {
    "extends": "iplayer/tsx"
  }
}

base rules:

{
  "eslintConfig": {
    "extends": "iplayer/base"
  }
}

legacy rules:

{
  "eslintConfig": {
    "extends": "iplayer/legacy"
  }
}

This package currently sets the default ECMAScript Version to be 9 for the base rules, with the legacy rules set to use ECMAScript Version 5. If you require a different version you can change it like so:

{
  "eslintConfig": {
    "extends": "iplayer"
  },
  "parserOptions": {
    "ecmaVersion": 6
  }
}

Readme

Keywords

Package Sidebar

Install

npm i eslint-config-iplayer

Weekly Downloads

583

Version

9.2.0

License

Apache-2.0

Unpacked Size

39.3 kB

Total Files

24

Last publish

Collaborators

  • shahp07
  • rlfbbc
  • ramkup01
  • aggari01
  • abz.me
  • jamesdesq
  • hjerling
  • hafsa-abdulsalim
  • yusuf963m
  • tzaman76
  • rsblandamer
  • anthonygreen
  • mknish
  • tmoco
  • ajitsanto09
  • lexedwardsbbc
  • cjewell47
  • catherine_hpr
  • andycharris
  • carrejoe3
  • chibbc
  • sbason
  • henrywarne
  • caporp01
  • swatitabib
  • ianarundale
  • milkywaynian