Registry /
testing / eslint-plugin-getsentry
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
muslnode 18–226 runs
build_error
glibcnode 18–226 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
}
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.
fixRun '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.
fixAdd 'getsentry' to the plugins array in your ESLint config.
Parsing error: Unexpected token < in file.jsx
ESLint is not configured to parse JSX syntax.
fixSet 'ecmaFeatures: { jsx: true }' or use a parser like '@babel/eslint-parser'. Audit
Dependencies
eslintrequiredpeer dependency required for ESLint plugin functionality