{"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,"search_vec":"'4.1.0':20 'best':35 'bias':24,43 'browser':74 'check':33 'code':45 'concis':46 'config':3,8,50,103 'display':83 'display-nam':82 'enabl':73 'environ':75 'eslint':2,7,49,63,68,100,102 'eslint-config':101 'eslint-config-esnext':48 'eslint-config-react-n':1 'eslint-plugin-react':62 'eslint-plugin-react-n':67 'eslintconfig':104 'esnext':51 'extend':16,47 'focus':30 'import':15 'includ':53 'javascript':99 'jsx':55,76 'kunalgolani':98 'latest':21 'like':81 'lint':28 'maintain':96 'name':84 'nativ':5,11,39,58,71,109 'no-unused-styl':89 'opinion':25 'overrid':18 'pars':77 'pluggabl':6 'plugin':64,69 'practic':36 'project':40 'prop':86 'prop-typ':85 'provid':22 'react':4,10,38,54,57,65,70,105,108 'react-nat':107 'reactj':106 'recommend':79 'releas':93 'rule':29,60,80 'safeti':32 'semver':95 'set':26 'specif':59 'style':92 'toward':44 'type':87 'unus':91 'version':19","created_at":"2026-04-25T11:18:27.452066+00:00","updated_at":"2026-04-25T11:18:27.452066+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/kunalgolani/eslint-config","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/eslint-config-react-native","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-07-24","install_tag":null}}