react-native-macos/packages/eslint-config-react-native-...
Dan Abramov 6ce3f0a4f7 Update React Hooks Plugin
Summary:
Updates `eslint-plugin-react-hooks` to 3.0.0. This introduces a new lint error when you use a Hook inside a class.

Changelog:
[General][Changed] - Updated the React Hooks ESLint Plugin

Reviewed By: cpojer

Differential Revision: D20675528

fbshipit-source-id: d0cbe9748fd15df7a4c6de00bd1462610e0a43d6
2020-03-26 14:02:03 -07:00
..
README.md Rename eslint config to 'eslint-config-react-native-community' (#23718) 2019-03-03 20:39:43 -08:00
index.js Add URLSearchParams and Headers to eslint globals (#27853) 2020-01-27 02:30:29 -08:00
package.json Update React Hooks Plugin 2020-03-26 14:02:03 -07:00
yarn.lock Update React Hooks Plugin 2020-03-26 14:02:03 -07:00

README.md

eslint-config-react-native-community

Installation

yarn add --dev eslint @react-native-community/eslint-config

Note: We're using yarn to install deps. Feel free to change commands to use npm 3+ and npx if you like

Usage

Add to your eslint config (.eslintrc, or eslintConfig field in package.json):

{
    "extends": "@react-native-community"
}