9.4.6 • Published 4 months ago
eslint-config-iplayer v9.4.6
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
}
}
9.4.6
4 months ago
9.4.5
4 months ago
9.4.4
4 months ago
9.4.3
4 months ago
9.4.2
4 months ago
9.4.1
4 months ago
9.4.0
4 months ago
9.3.0
4 months ago
10.0.0-beta.2
4 months ago
10.0.0-beta.1
4 months ago
9.2.0
2 years ago
9.1.0
2 years ago
9.0.0
2 years ago
8.0.0
4 years ago
7.0.0
6 years ago
6.2.1
7 years ago
6.2.0
7 years ago
6.1.0
7 years ago
6.0.0
7 years ago
5.0.0
7 years ago