Skip to content

part10: a - Introduction to React Native - ESLint #4099

@514sh

Description

@514sh

The .eslintrc.json file suggested below:

{
  "plugins": ["react", "react-native"],
  "settings": {
    "react": {
      "version": "detect"
    }
  },
  "extends": ["eslint:recommended", "plugin:react/recommended"],
  "parser": "@babel/eslint-parser",
  "env": {
    "react-native/react-native": true
  },
  "rules": {
    "react/prop-types": "off",
    "react/react-in-jsx-scope": "off"
  }
}

appears to use an older ESLint configuration format.

To follow the current recommendations, it’s better to use an eslint.config.js file instead. You can find more details here: eslint configuration file

Also, there is a helpful command that can migrate your existing .eslintrc.json file to the new format: npx @eslint/migrate-config .eslintrc.json

More information about migrating your ESLint config can be found here: migrating eslint config file

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions