react-native-macos/packages/eslint-config-react-native-...
Joe Frambach 8650220cf9 Fix ESLint and Typescript-ESLint disagreeing about function spacing (#33453)
Summary:
Fixes https://github.com/facebook/react-native/issues/33452 by replacing deprecated no-spaced-func ESLint rule and adding related TypeScript.

Changelog: [General][Fixed] - Update function spacing linting rules

See https://github.com/facebook/react-native/issues/33452 - Existing function spacing linting should pass as expected.

## Changelog

<!-- Help reviewers and the release process by writing your own changelog entry. For an example, see:
https://github.com/facebook/react-native/wiki/Changelog
-->

[CATEGORY] [TYPE] - Message

Pull Request resolved: https://github.com/facebook/react-native/pull/33453

Reviewed By: lunaleaps, cortinico

Differential Revision: D35011944

Pulled By: GijsWeterings

fbshipit-source-id: 441650045d89a01a9114103da0c080643f9cb82c
2022-04-01 06:49:02 -07:00
..
README.md docs: mention prettier in eslint-config README (#28930) 2020-05-20 03:32:46 -07:00
index.js Fix ESLint and Typescript-ESLint disagreeing about function spacing (#33453) 2022-04-01 06:49:02 -07:00
package.json ⬆️ Upgrade package to work with ESLint 8 (#33448) 2022-04-01 06:44:42 -07:00
yarn.lock ⬆️ Upgrade package to work with ESLint 8 (#33448) 2022-04-01 06:44:42 -07:00

README.md

eslint-config-react-native-community

Version

Installation

yarn add --dev eslint prettier @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"
}