{"id":19931,"library":"eslint-plugin-sentry","title":"ESLint Plugin Sentry","description":"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.","status":"active","version":"2.10.0","language":"javascript","source_language":"en","source_url":null,"tags":["javascript","eslint","eslintplugin","eslint-plugin"],"install":[{"cmd":"npm install eslint-plugin-sentry","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-plugin-sentry","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-plugin-sentry","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to use the plugin","package":"eslint","optional":true}],"imports":[{"note":"Omit prefix 'eslint-plugin-' in plugin array.","wrong":"plugins: ['eslint-plugin-sentry']","symbol":"eslint-plugin-sentry","correct":"plugins: ['sentry'], rules: { 'sentry/rule-name': 'error' }"},{"note":"Use string severity 'error' or 'warn' instead of numeric values for clarity.","wrong":"rules: { 'sentry/no-new-sentry': 2 }","symbol":"rules","correct":"rules: { 'sentry/no-new-sentry': 'error' }"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"plugins\": [\"sentry\"],\n  \"rules\": {\n    \"sentry/no-event-handler-errors\": \"error\",\n    \"sentry/no-empty-logger\": \"warn\"\n  }\n}","lang":"javascript","description":"This shows a minimal ESLint configuration with sentry plugin rules enabled."},"warnings":[{"fix":"Use ESLint 7.x or check compatibility with newer versions.","message":"Plugin only works with ESLint 7+ (not tested with 8/9).","severity":"gotcha","affected_versions":">=2.0.0"},{"fix":"Refer to documentation to enable specific rules; plugin may be empty.","message":"No built-in rules are provided in the default installation; rules must be manually configured.","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Consider using eslint-plugin-sentry-sdk or write custom rules.","message":"Package is not actively maintained; last release 2019.","severity":"deprecated","affected_versions":">=2.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Run 'npm install eslint-plugin-sentry --save-dev' and ensure .eslintrc file uses 'sentry' as plugin name.","cause":"Missing plugin installation or incorrect import path.","error":"Cannot find module 'eslint-plugin-sentry'"},{"fix":"List available rules via 'eslint --rulesdir node_modules/eslint-plugin-sentry/rules' or check documentation.","cause":"Plugin version may not include the rule, or rule name is misspelled.","error":"Rule 'sentry/rule-name' not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}