Skip to content

jitsi/eslint-config-jitsi

Repository files navigation

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 typescript:

 npm install --save-dev @typescript-eslint/eslint-plugin @typescript-eslint/parser @stylistic/eslint-plugin
{
  'extends': [
    '@jitsi/eslint-config',
    '@jitsi/eslint-config/typescript'
  ]
}