kibana/packages/kbn-eslint-plugin-telemetry
Jon be71713035
Upgrade typescript-eslint to 5.54.0 (#152358)
We're seeing infrequent but reliable build failures due to parse errors
when linting -
https://buildkite.com/elastic/kibana-on-merge/builds/27649#01869780-fb18-4a4d-990e-b8d5a05a701a/225-792.

Looking into bug fixes upstream.
2023-03-23 10:52:41 -05:00
..
helpers Upgrade typescript-eslint to 5.54.0 (#152358) 2023-03-23 10:52:41 -05:00
rules ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00
index.ts ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00
jest.config.js ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00
kibana.jsonc ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00
package.json ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00
README.mdx ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00
tsconfig.json ESLint Telemetry Rule (#153108) 2023-03-20 13:31:02 +00:00

---
id: kibDevDocsOpsEslintPluginTelemetry
slug: /kibana-dev-docs/ops/kbn-eslint-plugin-telemetry
title: '@kbn/eslint-plugin-telemetry'
description: Custom ESLint rules to support telemetry in the Kibana repository
tags: ['kibana', 'dev', 'contributor', 'operations', 'eslint', 'telemetry']
---

`@kbn/eslint-plugin-telemetry` is an ESLint plugin providing custom rules for validating JSXCode in the Kibana repo to make sure it can be instrumented for the purposes of telemetry.

## `@kbn/telemetry/instrumentable_elements_should_be_instrumented`

This rule warns engineers to add `data-test-subj` to instrumentable components. It currently suggests the most widely used EUI components (`EuiButton`, `EuiFieldText`, etc), but can be expanded with often-used specific components used in the Kibana repo.