eslint-config-iplayer
v9.2.0 eslint eslintconfig
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
}
}
npm i eslint-config-iplayer
Metadata
- Apache-2.0
- Whatever
- [email protected]
- released 11/28/2023
Downloads
Maintainers
ramkup01, aggari01, jpark0224, abz.me, frankj05, jamesdesq, arunbhari11, hjerling, hafsa-abdulsalim, yusuf963m, tzaman76, rsblandamer, anthonygreen, mknish, krishs03, tmoco, ajitsanto09, lexedwardsbbc, cjewell47, catherine_hpr, andycharris, syke, carrejoe3, chibbc, sbason, henrywarne, caporp01, swatitabib, ianarundale, milkywaynian,