Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-plugin-reactotron

infinitered25.4kMIT0.1.7TypeScript support: included

An ESLint plugin for Reactotron.

readme

eslint-plugin-reactotron

ESLint plugin containing rules to help with Reactotron code within your project

Installing

npm i --save-dev eslint-plugin-reactotron
# or
yarn add -D eslint-plugin-reactotron

Usage

Modify your plugins and rules inside ./eslintrc or eslintConfig inside package.json

"eslintConfig": {
  "plugins": [
    "reactotron"
  ],
  rules: {
    "reactotron/no-tron-in-production": "error"
  }
}

Rules

no-tron-in-production

Enforces if (__DEV__) around console.tron calls so they are not included in production.

changelog