eslint-config-jitsi
A shareable eslint config for Jitsi's projects.
Install
npm install --save-dev @jitsi/eslint-config
Installing peerDependencies
npm install --save-dev babel-eslint eslint-plugin-import
Usage
Add the following to your .eslintrc.js
.
{
'extends': '@jitsi/eslint-config'
}
Additional
If you want to enforce jsdoc
rules used by Jitsi.
npm install --save-dev eslint-plugin-jsdoc
{
'extends': [
'@jitsi/eslint-config',
'@jitsi/eslint-config/jsdoc'
]
}
If you are using react
.
npm install --save-dev eslint-plugin-react
{
'extends': [
'@jitsi/eslint-config',
'@jitsi/eslint-config/react'
]
}
If you are using flow
:
npm install --save-dev eslint-plugin-flowtype
{
'extends': [
'@jitsi/eslint-config',
'@jitsi/eslint-config/flow'
]
}
If you are using typescript
:
npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser
{
'extends': [
'@jitsi/eslint-config',
'@jitsi/eslint-config/typescript'
]
}