react-native-macos/packages/eslint-config-react-native-...
michalchudziak c8e26e6ac4 Fix eslint glob for `.test.js` and `.spec.js` files. (#24088)
Summary:
Existing glob might not work very well with `spec.js` and `test.js` files unless they're placed in `__tests__` directory. This PR aims to bring back the support of `jest` globals in these files, even if they're outside of `__tests__` directory.

[General] [Fixed] - Fixed globs for `spec.js` and `test.js` files.
Pull Request resolved: https://github.com/facebook/react-native/pull/24088

Differential Revision: D14562085

Pulled By: cpojer

fbshipit-source-id: 543d67e3f8a154256f454b34ccc68bb070197a75
2019-03-21 08:39:39 -07:00
..
README.md Rename eslint config to 'eslint-config-react-native-community' (#23718) 2019-03-03 20:39:43 -08:00
index.js Fix eslint glob for `.test.js` and `.spec.js` files. (#24088) 2019-03-21 08:39:39 -07:00
package.json Add .eslintrc to RN project template (#23901) 2019-03-21 07:14:23 -07:00
yarn.lock Eliminate eslint npm version mismatch warnings and bump some to latest (#23969) 2019-03-19 11:14:30 -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"
}