Registry / testing / eslint-plugin-getsentry

eslint-plugin-getsentry

JSON →
library2.0.0jsnpmunverified

Custom ESLint plugin providing rules specific to Sentry's development workflow, such as enforcing internationalized strings in JSX. Version 2.0.0 is the latest stable release, actively maintained alongside the getsentry/sentry project. Differentiates from generic linting by catering to Sentry's codebase conventions, focusing on preventing untranslated UI strings.

npm install eslint-plugin-getsentry
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-GETS
E
eslint-plugin-getsentry
testingjavascriptv2.0.0
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
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 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

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

plugin
import getsentry from 'eslint-plugin-getsentry'
const getsentry = require('eslint-plugin-getsentry')
Plugin is a default export; use import for ESM environments.
rules
const { rules } = require('eslint-plugin-getsentry')
import { rules } from 'eslint-plugin-getsentry'
Rules object is exported as named export in CJS; ESM named export also works but less common.
configs
const { configs } = require('eslint-plugin-getsentry')
import configs from 'eslint-plugin-getsentry'
Configs are a named export; default export is the plugin object itself.

Configures ESLint with the getsentry plugin and demonstrates the jsx-needs-il8n rule warning on an untranslated string.

// .eslintrc.js module.exports = { plugins: ['getsentry'], rules: { 'getsentry/jsx-needs-il8n': 'warn' } }; // component.jsx function MyComponent() { return <div>Hello</div>; // triggers warning: string literal should be wrapped for i18n }
Debug
Known issues
gotchaThe rule name is 'jsx-needs-il8n' (note the capital I and digit 8, not 'i18n').
fix
Use exact rule name 'jsx-needs-il8n' in your ESLint configuration.
affects: >=0.1.0
deprecatedSome older rules from previous versions may have been removed; check changelog when upgrading.
fix
Review current set of supported rules in the plugin documentation.
affects: >=1.0.0
breakingESLint peer dependency requirement may change between major versions.
fix
Ensure eslint is a peer dependency (version 8+ recommended for plugin v2).
affects: >=2.0.0
Errors
Common errors & fixes
Error: Failed to load plugin 'getsentry' declared in '.eslintrc': Cannot find module 'eslint-plugin-getsentry'
Plugin is not installed or missing from node_modules.
fix
Run 'npm install eslint-plugin-getsentry --save-dev'.
ESLint configuration in .eslintrc.json is invalid: - Rule 'getsentry/jsx-needs-il8n' is not defined
Plugin is not listed in the 'plugins' array.
fix
Add 'getsentry' to the plugins array in your ESLint config.
Parsing error: Unexpected token < in file.jsx
ESLint is not configured to parse JSX syntax.
fix
Set 'ecmaFeatures: { jsx: true }' or use a parser like '@babel/eslint-parser'.
Upgrade
Version history
2.0.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency required for ESLint plugin functionality
Agent activity
6 hits · last 30 days
node
6
Resources
eslint-plugin-getsentry — npm install eslint-plugin-getsentry · libregistry