eslint-plugin-reanimated

    1.2.4 • Public • Published

    NPM CI & CD

    The goal of this plugin is to help you when writing animation worklets with Reanimated.

    Installation

    This plugin requires your project to use TypeScript (>=4.1.3).

    yarn add eslint-plugin-reanimated --dev

    External type declaration need to expose the @worklet JSDoc. In the case of react-native-redash, this is done starting version 16.0.6 (see js-function-in-worklet).

    Example Configuration

    The plugin relies on TypeScript compiler services to resolve types. You need to set your tsconfig.json file in your eslint configuration via parserOptions.

    {
      "extends": "react-native-wcandillon",
      "plugins": ["reanimated"],
      "parserOptions": {
        "project": "./tsconfig.json"
      },
      "rules": {
        "reanimated/js-function-in-worklet": 2,
      }
    }

    Rules

    Keywords

    none

    Install

    npm i eslint-plugin-reanimated

    DownloadsWeekly Downloads

    909

    Version

    1.2.4

    License

    MIT

    Unpacked Size

    17.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • wcandillon