Registry / testing / eslint-config-sentry

eslint-config-sentry

JSON →
library2.10.0jsnpmunverified

ESLint shareable config for Sentry projects. Current stable version: 2.10.0. Release cadence is irregular; updates are tied to Sentry's monorepo changes. Key differentiators: includes strict rules for React and import order via eslint-plugin-import and eslint-plugin-react, with a separate 'app' preset for full app setups. Requires eslint >=8. Commonly used for internal Sentry codebases and open-source projects adopting Sentry's linting style.

npm install eslint-config-sentry
INSTALL
IMPORT
SIG · ESLINT-CONFIG-SENT
E
eslint-config-sentry
testingjavascriptv2.10.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.

extends
extends: ['sentry']
extends: ['eslint-config-sentry']
Use the shorthand 'sentry' in ESLint config, not the full package name.
extends
extends: ['sentry/app']
extends: ['sentry/app']
Use 'sentry/app' for full app setup with React and import rules.
extends
extends: ['sentry', 'sentry/app']
extends: ['sentry/base', 'sentry/react']
Only 'sentry' and 'sentry/app' are valid config names; no sub-configs exist.

Shows how to extend the 'sentry/app' config in .eslintrc.json.

{ "extends": "sentry/app", "rules": { "react/prop-types": "off" } }
Debug
Known issues
breakingVersion 2.0 dropped support for ESLint <8.0.0. Upgrading may break CI if older ESLint is pinned.
fix
Update ESLint to >=8 or pin eslint-config-sentry to <2.0.0.
affects: >=2.0.0
deprecatedThe 'sentry/base' config was removed in v2. Use 'sentry' or 'sentry/app' instead.
fix
Replace 'sentry/base' with 'sentry' or 'sentry/app'.
affects: >=2.0.0
gotchaDirectly importing the package as a plugin (e.g., 'plugins: ["sentry"]') does nothing; it is an ESLint config, not a plugin.
fix
Use 'extends' not 'plugins' in ESLint config.
affects: all
Errors
Common errors & fixes
Configuration for rule 'import/order' is invalid
Conflict between eslint-config-sentry and user-defined import order rules.
fix
Override the `import/order` rule in your .eslintrc: `{ "rules": { "import/order": "off" } }`
ESLint couldn't find the config "sentry" after installing eslint-config-sentry
ESLint version <8 or missing peer dependency.
fix
Ensure eslint >=8 is installed and that the package is in node_modules. Run `npm ls eslint-config-sentry`.
Upgrade
Version history
2.10.0latest on npm
Audit
Dependencies
eslintrequiredpeer dependency: required at runtime
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-config-sentry — npm install eslint-config-sentry · libregistry