Back to Sentry Javascript

Official Sentry SDK eslint config

packages/eslint-config-sdk/README.md

10.58.01.4 KB
Original Source
<p align="center"> <a href="https://sentry.io/?utm_source=github&utm_medium=logo" target="_blank"> </a> </p>

Official Sentry SDK eslint config

[!NOTE] This package is an internal library published for use by Sentry-owned JavaScript SDK packages and repositories. It is not part of the public API contract and may change in any release. Do not rely on SemVer compatibility if you depend on it directly.

General

Install with yarn add -D @sentry/eslint-config-sdk

Configuration

Use @sentry for base rules. Make sure to specify your tsconfig under parserOptions.project so that you can correctly use the typescript rules. This configuration comes with

json
{
  "extends": ["@sentry/sdk"],
  "overrides": [
    {
      "files": ["*.ts", "*.tsx", "*.d.ts"],
      "parserOptions": {
        "project": "./tsconfig.json"
      }
    }
  ]
}