A linting tool for Lottie animation JSON files. Current stable version is 1.2.0. It checks for performance issues, compatibility problems, and errors in Lottie animations. Key differentiators: provides granular reports with severity levels (error, warn, info, incompatible) and identifies incompatible features across platforms (iOS, Web, Android). Designed for use in CI/CD pipelines to catch Lottie issues early. Release cadence appears irregular, with a few minor versions since initial release.
npm install lottie-lintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to import the linter, run it on a Lottie JSON object, and process the resulting reports.
Clone the JSON before passing to linter if preservation is needed: linter(JSON.parse(JSON.stringify(animation)))
Parse JSON string with JSON.parse() before calling linter.
Use JSON.stringify() to get a JSON string if needed.
N/A
Use: const linter = require('lottie-lint').default;Parse the string first: linter(JSON.parse(jsonString))
Ensure variable names match: const { reports } = linter(data);No dependency data recorded yet.