Détail du package

eslint-plugin-reactotron

infinitered23.2kMIT0.1.7

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