Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get Started
Design and Develop
Publish
Reference
Support
Skip to main content
The Vega ESLint plugin, eslint-plugin-kepler, provides automated linting rules for Vega apps, helping you discover and fix performance and compatibility issues.

Prerequisites

Install the plugin and its dependencies:

Configure the plugin

  1. Update extends, plugins, and overrides sections of your .eslintrc configuration file:
    The plugin configurations include:
    • performance - Performance-related rules only
    • system-distributed-libs - System distributed library checks only (package.json validation and import informational flagging)
    You can use both performance and system-distributed-libs together to achieve the same result.
  2. (Optional) Customize lint rules following ESLint’s configure rules guide. For rules provided by Vega ESLint plugin, see Understand the performance rules.
  3. Specify custom formatter in package.json:
  4. Run the linter:
    You can see the result on the console: The output display shown in the console after running the linter. The linter also generates an HTML report: A screenshot that shows the ESLint analysis report for a Vega project, highlighting two performance-related warnings: missing implementation of useReportFullyDrawn() for time-to-fully-drawn metrics and usePreventHideSplashScreen() for splash screen optimization. The report indicates no critical errors in the codebase. You can check these linter warnings on VS code while you’re editing the code: A screenshot that shows a linter warning on VS Code.

Understand the performance rules

The following rules help identify common performance issues in Vega apps and enforce best practices for optimal runtime performance.

Understand the system distributed library rules

The following rules detect system distributed library usage and guide you on proper implementation.

(Optional) Configure semantic version guidance

The system distributed library rules check semantic versioning in your package.json dependencies. By default, the plugin uses auto mode to detect your project’s versioning settings. Override the default by setting the semverGuidance option:
  • Patch only mode (semverGuidance: "patch"): Restricts updates to patches using ~ prefix.
  • Minor and patch mode (semverGuidance: "minor"): Allows minor updates using ^ prefix.
  • Auto mode (semverGuidance: "auto"): Detects settings based on project signatures in the project repo. This is the default.
Example configuration using patch-only mode:

(Optional) Configure VS Code for JSON validation

If you want to see errors and warnings in VS Code’s package.json, add json to these settings.json entries:
ESLint Official Documentation
Last modified on November 13, 2025