ESLint environment plugin for Detox, an end-to-end testing framework for React Native applications. Version 1.0.0 is the latest stable release with no known release cadence. It provides a custom ESLint environment to enable global Detox variables (like `device`, `expect`, `element`, `by`, `waitFor`) in test files, preventing no-undef errors. Unlike generic ESLint settings, this plugin is tailored specifically for Detox's asynchronous UI testing helpers and should be combined with environments like mocha/jest. Statically releases with no frequent updates; works with ESLint 1.x+ and supports both npm and yarn.
npm install eslint-plugin-detoxVerified import paths — ran on the pinned version, not inferred.
Shows how to install, configure ESLint with detox environment, and a sample Detox test using globals enabled by the plugin.
Use standard ESLint rules (e.g., 'no-undef') with the 'detox/detox' environment.
Combine 'detox/detox' with 'mocha':true or 'jest':true in the env block.
Add 'detox/detox' to the env section of .eslintrc or include comment: /* eslint-env detox/detox */
Remove rule references prefixed with 'detox/'. The plugin only provides an environment.