Metro is the JavaScript bundler for React Native, providing fast reload cycles, scalable module bundling, and deep integration with React Native projects. This package, metro-eslint, is an ESLint plugin for Metro. Current stable version is 0.84.3 (released regularly, with breaking changes only in major versions). Key differentiators: sub-second HMR, built-in support for React Native's platform-specific extensions, and advanced caching. Alternatives: Webpack with React Native web support, but Metro is the default and recommended bundler for React Native. This specific package provides ESLint rules tailored to Metro's resolution and configuration.
npm install metro-eslintNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Minimal setup for using metro-eslint plugin in an ESLint configuration file.
Upgrade Node.js to v20.19 or later, or v22.
Use import { mergeConfig } from 'metro-config' instead.Use module.exports in .cjs files, or export default in .mjs/.js files.
Switch to import { mergeConfig } from 'metro-config' in .mjs or .js config files.npm install --save-dev metro-eslint
Add 'parserOptions: { sourceType: 'module' }' to .eslintrc or use .mjs extension.Add 'plugins: ["metro"]' to your ESLint config.
No traffic data recorded yet.