An ESLint plugin for enforcing Sentry.io best practices. Version 2.10.0 is the latest stable release, with low release cadence and minimal maintenance. It provides custom ESLint rules to help developers avoid common Sentry SDK pitfalls, such as missing error boundaries or incorrect usage. Unlike other ESLint plugins, it is narrowly scoped to Sentry-specific patterns. Requires ESLint as a peer dependency. Known for limited documentation and few rules.
npm install eslint-plugin-sentryVerified import paths — ran on the pinned version, not inferred.
This shows a minimal ESLint configuration with sentry plugin rules enabled.
Use ESLint 7.x or check compatibility with newer versions.
Refer to documentation to enable specific rules; plugin may be empty.
Consider using eslint-plugin-sentry-sdk or write custom rules.
Run 'npm install eslint-plugin-sentry --save-dev' and ensure .eslintrc file uses 'sentry' as plugin name.
List available rules via 'eslint --rulesdir node_modules/eslint-plugin-sentry/rules' or check documentation.