eslint-config-iplayer

9.4.6 • 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
  }
}

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
9.4.6406latest
9.4.41beta

Version History

VersionDownloads (Last 7 Days)Published
9.4.6406
9.4.50
9.4.41
9.4.30
9.4.20
9.4.10
9.4.00
10.0.0-beta.226
9.3.032
10.0.0-beta.15
9.2.0530
9.1.06
9.0.01
8.0.0298
7.0.0236
6.2.11
6.1.00
6.0.00
5.0.00

Package Sidebar

Install

npm i eslint-config-iplayer

Weekly Downloads

1,542

Version

9.4.6

License

Apache-2.0

Unpacked Size

40 kB

Total Files

24

Last publish

Collaborators

  • mknish
  • sbason
  • abz.me
  • catherine_hpr
  • henrywarne
  • caporp01
  • swatitabib
  • ianarundale
  • milkywaynian
  • andycharris
  • carrejoe3
  • hafsa-abdulsalim
  • chibbc
  • lexedwardsbbc
  • ajitsanto09
  • tmoco
  • yusuf963m
  • anthonygreen
  • rsblandamer
  • tzaman76
  • lukeparker02
  • ramkup01
  • aggari01
  • rlfbbc
  • jamesdesq
  • shahp07
  • roopashree-ramachandraiah
  • hjerling
  • mstephensonbbc
  • syke
  • award2022
  • ridwan_dev
  • kieranjoyce
  • antoinerabanesbbc
  • gingertonicst
  • nags338228