{"id":19582,"library":"eslint-config-sentry-app","title":"Sentry ESLint Config","description":"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.","status":"active","version":"2.10.0","language":"javascript","source_language":"en","source_url":"https://github.com/getsentry/eslint-config-sentry","tags":["javascript","eslint","eslint-config","sentry"],"install":[{"cmd":"npm install eslint-config-sentry-app","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-sentry-app","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-sentry-app","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to run ESLint; version >=8 needed.","package":"eslint","optional":false}],"imports":[{"note":"Use the short name 'sentry/app' in your .eslintrc; the full package name is not needed.","wrong":"extends: ['eslint-config-sentry/app']","symbol":"config (via extends)","correct":"extends: ['sentry/app']"},{"note":"CommonJS require works; no need to specify index.js.","wrong":"const config = require('eslint-config-sentry/app/index.js');","symbol":"config (via require)","correct":"const config = require('eslint-config-sentry/app');"},{"note":"ESM import is supported with a default export; named exports are not available.","wrong":"import { app } from 'eslint-config-sentry';","symbol":"config (ESM import)","correct":"import config from 'eslint-config-sentry/app';"}],"quickstart":{"code":"// .eslintrc.json\n{\n  \"extends\": [\"sentry/app\"],\n  \"rules\": {\n    // override rules as needed\n  }\n}","lang":"javascript","description":"Configure ESLint to use Sentry's base rules for app projects, including React and import plugin rules."},"warnings":[{"fix":"Upgrade ESLint to version 8 or later: npm install eslint@8 --save-dev","message":"v2.x requires ESLint >=8; ESLint 7 is not supported.","severity":"breaking","affected_versions":">=2.0.0"},{"fix":"Use 'sentry/app' instead of 'sentry' in your extends array.","message":"The 'sentry' base config (without '/app') is deprecated in favor of 'sentry/app'.","severity":"deprecated","affected_versions":">=1.20.0"},{"fix":"Override rules like 'import/order' or 'import/prefer-default-export' in your own rule set.","message":"This config enforces strict import ordering and no default exports. May conflict with other presets.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"Install the package: npm install --save-dev eslint-config-sentry","cause":"eslint-config-sentry is not installed or not in node_modules.","error":"ESLint: Failed to load config 'sentry/app' to extend in .eslintrc.json"},{"fix":"Verify installation: npm ls eslint-config-sentry. Ensure ESLint >=8.","cause":"The config is imported but the package is missing or version mismatch.","error":"ESLint: Cannot find module 'eslint-config-sentry/app' from /path/to/project"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}