The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/packages/grafana-eslint-rules
Ashley Harrison ae4810f854
Chore: Emit theme token usage metrics (#72500)
2 years ago
..
rules Chore: Emit theme token usage metrics (#72500) 2 years ago
LICENSE_APACHE2 Chore: eslint rule for preventing e2e selectors in aria-label (#59731) 2 years ago
README.md Chore: Emit theme token usage metrics (#72500) 2 years ago
index.cjs Chore: Emit theme token usage metrics (#72500) 2 years ago
package.json Release: Bump version to 10.2.0-pre (#72418) 2 years ago

README.md

Grafana ESLint Rules

This package contains custom eslint rules for use within the Grafana codebase only. They're extremley specific to our codebase, and are of little use to anyone else. They're not published to NPM, and are consumed through the Yarn workspace.

Rules

@grafana/no-aria-label-selectors

Require aria-label JSX properties to not include selectors from the @grafana/e2e-selectors package.

Previously we hijacked the aria-label property to use as E2E selectors as an attempt to "improve accessibility" while making this easier for testing. However, this lead to many elements having poor, verbose, and unnecessary labels.

Now, we prefer using data-testid for E2E selectors.

@grafana/theme-token-usage

Used to find all instances of theme tokens being used in the codebase and emit the counts as metrics. Should not be used as an actual lint rule!