2.0.1 • Published 2 years ago

eslint-plugin-reanimated v2.0.1

Weekly downloads
165
License
MIT
Repository
github
Last release
2 years ago

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

2.0.1

2 years ago

1.2.7

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

2.0.0

3 years ago

1.2.4

4 years ago

1.2.3

4 years ago

1.2.2

4 years ago

1.2.1

4 years ago

1.2.0

4 years ago

1.1.0

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.3

4 years ago

1.0.0

4 years ago