{"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,"search_vec":"'2.10.0':18 '8':64 'base':21 'best':46 'code':43 'config':3,9,76 'configur':25 'current':15 'design':33 'develop':37 'enforc':39 'eslint':2,7,63,73,75 'eslint-config':74 'extend':20 'extern':70 'follow':50 'import/export':29 'includ':24 'intend':68 'intern':35 'javascript':72 'monorepo':60 'offici':6 'packag':49 'plugin':30 'practic':47 'project':14,71 'react':27 'releas':54 'rule':22 'semant':51 'sentri':1,4,13,36,41,58,77 'sentry-specif':40 'sentry/app':32 'shareabl':8 'specif':42 'stabl':16 'style':44 'tie':56 'use':11,61 'version':17,52 'via':31","created_at":"2026-04-25T11:18:33.972464+00:00","updated_at":"2026-04-25T11:18:33.972464+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/getsentry/eslint-config-sentry","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-config-sentry-app","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}