Back to Sentry Javascript

Official Sentry SDK eslint config

packages/eslint-config-sdk/README.md

10.51.01.2 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

General

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

Configuration

Use @sentry-internal 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-internal/sdk"],
  "overrides": [
    {
      "files": ["*.ts", "*.tsx", "*.d.ts"],
      "parserOptions": {
        "project": "./tsconfig.json"
      }
    }
  ]
}