Sentry's official ESLint shareable config for use in Sentry projects. Current stable version: 2.10.0. It extends base rules and includes configurations for React and import/export plugins via 'sentry/app'. Designed for internal Sentry development, it enforces Sentry-specific code style and best practices. The package follows semantic versioning but releases are tied to Sentry's monorepo. Use with ESLint >=8. It is not intended for external projects.
npm install eslint-config-sentry-appVerified import paths — ran on the pinned version, not inferred.
Configure ESLint to use Sentry's base rules for app projects, including React and import plugin rules.
Upgrade ESLint to version 8 or later: npm install eslint@8 --save-dev
Use 'sentry/app' instead of 'sentry' in your extends array.
Override rules like 'import/order' or 'import/prefer-default-export' in your own rule set.
Install the package: npm install --save-dev eslint-config-sentry
Verify installation: npm ls eslint-config-sentry. Ensure ESLint >=8.