{"id":19564,"library":"eslint-config-react-native","title":"eslint-config-react-native","description":"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.","status":"active","version":"4.1.0","language":"javascript","source_language":"en","source_url":"https://github.com/kunalgolani/eslint-config","tags":["javascript","eslint","eslint-config","eslintconfig","react","reactjs","react-native"],"install":[{"cmd":"npm install eslint-config-react-native","lang":"bash","label":"npm"},{"cmd":"yarn add eslint-config-react-native","lang":"bash","label":"yarn"},{"cmd":"pnpm add eslint-config-react-native","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency required to run ESLint rules","package":"eslint","optional":false}],"imports":[{"note":"Use in .eslintrc file under extends","symbol":"config","correct":"extends: ['react-native']"}],"quickstart":{"code":"npm install --save-dev eslint-config-react-native eslint\n# Create .eslintrc.js:\nmodule.exports = {\n  extends: ['react-native'],\n  rules: {\n    'react-native/no-unused-styles': 'error',\n  },\n};\n# Run ESLint:\nnpx eslint src/","lang":"javascript","description":"Install the config and ESLint, create a basic .eslintrc.js extending the config, and run ESLint on a source directory."},"warnings":[{"fix":"Consider overriding individual rules or migrating to modern alternatives like eslint-config-airbnb or @react-native/eslint-config","message":"eslint-config-react-native depends on eslint-config-esnext which may use outdated rules","severity":"deprecated","affected_versions":">=4.0.0"},{"fix":"Override env in your own config: env: { browser: false }","message":"Config enables 'browser: true' which may be inappropriate for React Native environment","severity":"gotcha","affected_versions":"*"},{"fix":"Update eslint to ^6.0.0","message":"Version 3.x to 4.x changed peer dependency eslint range from ^2.0.0 to ^6.0.0","severity":"breaking","affected_versions":">=3.0.0 <4.0.0"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install --save-dev eslint-config-react-native","cause":"The config package is not installed or not in node_modules","error":"ESLint couldn't find the config \"react-native\"."},{"fix":"npm install --save-dev eslint-plugin-react","cause":"Missing required plugin (eslint-plugin-react) as a dependency","error":"Failed to load plugin 'react' declared in 'eslint-config-react-native': Cannot find module 'eslint-plugin-react'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}