Pluggable ESLint config for React Native that you can import, extend and override. Version 4.1.0 (latest). Provides a biased, opinionated set of lint rules focused on safety checks and best practices for React Native projects, with a bias toward code concision. Extends eslint-config-esnext and includes React, JSX, and React Native specific rules from eslint-plugin-react and eslint-plugin-react-native. It enables browser environment, JSX parsing, and recommended rules like display-name, prop-types, and no-unused-styles. Released with semver, maintained by kunalgolani.
npm install eslint-config-react-nativeVerified import paths — ran on the pinned version, not inferred.
Install the config and ESLint, create a basic .eslintrc.js extending the config, and run ESLint on a source directory.
Consider overriding individual rules or migrating to modern alternatives like eslint-config-airbnb or @react-native/eslint-config
Override env in your own config: env: { browser: false }Update eslint to ^6.0.0
npm install --save-dev eslint-config-react-native
npm install --save-dev eslint-plugin-react