Registry / testing / eslint-config-sentry-app

eslint-config-sentry-app

JSON →
library2.10.0jsnpmunverified

Sentry's official ESLint shareable config for use in Sentry projects. Current stable version: 2.10.0. It extends base rules and includes configurations for React and import/export plugins via 'sentry/app'. Designed for internal Sentry development, it enforces Sentry-specific code style and best practices. The package follows semantic versioning but releases are tied to Sentry's monorepo. Use with ESLint >=8. It is not intended for external projects.

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

config (via extends)
✓ extends: ['sentry/app']
✗ extends: ['eslint-config-sentry/app']
Use the short name 'sentry/app' in your .eslintrc; the full package name is not needed.
config (via require)
✓ const config = require('eslint-config-sentry/app');
✗ const config = require('eslint-config-sentry/app/index.js');
CommonJS require works; no need to specify index.js.
config (ESM import)
✓ import config from 'eslint-config-sentry/app';
✗ import { app } from 'eslint-config-sentry';
ESM import is supported with a default export; named exports are not available.

Configure ESLint to use Sentry's base rules for app projects, including React and import plugin rules.

// .eslintrc.json { "extends": ["sentry/app"], "rules": { // override rules as needed } }
Debug
Known issues
breakingv2.x requires ESLint >=8; ESLint 7 is not supported.
fix
Upgrade ESLint to version 8 or later: npm install eslint@8 --save-dev
affects: >=2.0.0
deprecatedThe 'sentry' base config (without '/app') is deprecated in favor of 'sentry/app'.
fix
Use 'sentry/app' instead of 'sentry' in your extends array.
affects: >=1.20.0
gotchaThis config enforces strict import ordering and no default exports. May conflict with other presets.
fix
Override rules like 'import/order' or 'import/prefer-default-export' in your own rule set.
affects: all
Errors
Common errors & fixes
ESLint: Failed to load config 'sentry/app' to extend in .eslintrc.json
eslint-config-sentry is not installed or not in node_modules.
fix
Install the package: npm install --save-dev eslint-config-sentry
ESLint: Cannot find module 'eslint-config-sentry/app' from /path/to/project
The config is imported but the package is missing or version mismatch.
fix
Verify installation: npm ls eslint-config-sentry. Ensure ESLint >=8.
Upgrade
Version history
2.10.0latest on npm
Audit
Dependencies
eslintrequiredPeer dependency required to run ESLint; version >=8 needed.
Agent activity
4 hits · last 30 days
node
4
Resources
eslint-config-sentry-app — npm install eslint-config-sentry-app · libregistry