Registry / testing / eslint-plugin-reactotron

eslint-plugin-reactotron

JSON →
library0.1.9jsnpmunverified

An ESLint plugin for Reactotron that provides lint rules to enforce best practices when using Reactotron in React Native or other JavaScript projects. Currently at version 0.1.9, it is part of the Reactotron ecosystem maintained by Infinite Red. The plugin helps catch common mistakes like leaving Reactotron enabled in production code. It ships with TypeScript types and requires reactotron-core-client as a peer dependency. Unlike general ESLint plugins, it is narrowly focused on Reactotron-specific patterns.

npm install eslint-plugin-reactotron
INSTALL
IMPORT
SIG · ESLINT-PLUGIN-REAC
E
eslint-plugin-reactotron
testingjavascriptv0.1.9
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default
import reactotron from 'eslint-plugin-reactotron'
const reactotron = require('eslint-plugin-reactotron')
CommonJS require works but is not recommended for new projects. The plugin is ESM-first.
rules
import { rules } from 'eslint-plugin-reactotron'
Named export for accessing rule objects directly.
Plugin
import { Plugin } from 'eslint-plugin-reactotron'
TypeScript type export available for plugin configuration.

Basic ESLint configuration to enable the reactotron plugin and enforce the 'no-reactotron-in-production' rule.

// .eslintrc.js module.exports = { plugins: ['reactotron'], rules: { 'reactotron/no-reactotron-in-production': 'error', }, };
Debug
Known issues
gotchaThe plugin requires a peer dependency on reactotron-core-client, which may not be installed automatically. Ensure it is installed to avoid missing module errors.
fix
Install reactotron-core-client as a dependency: npm install reactotron-core-client
affects: >=0.1.0
deprecatedThe 'no-reactotron-in-production' rule has been deprecated in favor of 'no-production' in version 0.2.0 (if ever released).
fix
Use 'reactotron/no-production' instead.
affects: <0.2.0
breakingCommonJS export compatibility was fixed in 0.1.9, but earlier versions had issues with CJS require().
fix
Upgrade to v0.1.9 or later to avoid CommonJS compatibility issues.
affects: <0.1.9
Errors
Common errors & fixes
Missing peer dependency: reactotron-core-client
The plugin references reactotron-core-client internally, but it is not installed.
fix
Run 'npm install reactotron-core-client' in your project.
Error: Plugin 'reactotron' not found
The ESLint plugin is not installed or not configured correctly in the plugins array.
fix
Ensure 'eslint-plugin-reactotron' is installed and added to the 'plugins' array in your ESLint config.
Upgrade
Version history
0.1.9latest on npm
Audit
Dependencies
reactotron-core-clientrequiredPeer dependency required for rule logic that interacts with Reactotron client
Agent activity
2 hits · last 30 days
node
2
Resources
eslint-plugin-reactotron — npm install eslint-plugin-reactotron · libregistry