Registry / observability / eslint-plugin-sentry

eslint-plugin-sentry

JSON →
library2.10.0jsnpmunverified

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-sentry
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-SENT
E
eslint-plugin-sentry
observabilityjavascriptv2.10.0
Install
—
Import
—
Disk
—
Pass rate
0/ 6
Env Coverage0 / 6
glibc
18–22
musl
18–22
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18–226 runs
build_error
glibc
node 18–226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

eslint-plugin-sentry
✓ plugins: ['sentry'], rules: { 'sentry/rule-name': 'error' }
✗ plugins: ['eslint-plugin-sentry']
Omit prefix 'eslint-plugin-' in plugin array.
rules
✓ rules: { 'sentry/no-new-sentry': 'error' }
✗ rules: { 'sentry/no-new-sentry': 2 }
Use string severity 'error' or 'warn' instead of numeric values for clarity.

This shows a minimal ESLint configuration with sentry plugin rules enabled.

// .eslintrc.json { "plugins": ["sentry"], "rules": { "sentry/no-event-handler-errors": "error", "sentry/no-empty-logger": "warn" } }
Debug
Known issues
gotchaPlugin only works with ESLint 7+ (not tested with 8/9).
fix
Use ESLint 7.x or check compatibility with newer versions.
affects: >=2.0.0
breakingNo built-in rules are provided in the default installation; rules must be manually configured.
fix
Refer to documentation to enable specific rules; plugin may be empty.
affects: >=1.0.0
deprecatedPackage is not actively maintained; last release 2019.
fix
Consider using eslint-plugin-sentry-sdk or write custom rules.
affects: >=2.0.0
Errors
Common errors & fixes
Cannot find module 'eslint-plugin-sentry'
Missing plugin installation or incorrect import path.
fix
Run 'npm install eslint-plugin-sentry --save-dev' and ensure .eslintrc file uses 'sentry' as plugin name.
Rule 'sentry/rule-name' not found
Plugin version may not include the rule, or rule name is misspelled.
fix
List available rules via 'eslint --rulesdir node_modules/eslint-plugin-sentry/rules' or check documentation.
Upgrade
Version history
2.10.0latest on npm
Audit
Dependencies
eslintoptionalPeer dependency required to use the plugin
Agent activity
21 hits · last 30 days
node
18
OpenAI (training)
1
Resources
eslint-plugin-sentry — npm install eslint-plugin-sentry · libregistry