eslint-plugin-reanimated v2.0.1 is an ESLint plugin that enforces best practices when using Reanimated 2 and 3 worklets in React Native projects. It provides rules to detect JavaScript functions called inside worklets (which break the UI thread), disallowed syntax, and multiple animated style usages. Requires TypeScript >=4.1.3 and ESLint >=8. Actively maintained, updated for Reanimated 3.4.2+. Differentiator: uses TypeScript compiler services for accurate type resolution, unlike lighter lint-based alternatives.
npm install eslint-plugin-reanimatedVerified import paths — ran on the pinned version, not inferred.
Minimal ESLint configuration enabling all Reanimated rules with TypeScript project path.
Remove or disable that rule, or pin to v1.x if you still need it.
Ensure imported functions (e.g., from react-native-redash) are marked with /** @worklet */.
Set parserOptions.project to the path of your tsconfig.json.
Remove the rule from configuration; it will not work.
Add 'parserOptions: { project: './tsconfig.json' }' to your ESLint config.Install @typescript-eslint/parser and set 'parser: "@typescript-eslint/parser"' in ESLint config.
Ensure 'plugins: ["reanimated"]' is present, not 'eslint-plugin-reanimated'.