From d08c926dff0aa5bd4a272b6000b9bbf59aa4c823 Mon Sep 17 00:00:00 2001 From: Jesse Katsumata Date: Thu, 6 Feb 2020 18:49:49 -0800 Subject: [PATCH] chore: add eslint back to template (#27983) Summary: This PR is part of https://github.com/react-native-community/releases/issues/157#issuecomment-582504146 Adding eslint back to the template package.json ## Changelog [Internal] [Fixed] - Add eslint back in template Pull Request resolved: https://github.com/facebook/react-native/pull/27983 Test Plan: (edited) - npx react-native init RN062 --version 0.62.0-rc.1 - yarn add -d eslint - add npm script for lint - yarn lint Differential Revision: D19784567 Pulled By: TheSavior fbshipit-source-id: 9ce24c0b674c2b1ea9fee3ed5614e8922f992f72 --- template/package.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/template/package.json b/template/package.json index 031de47e7369b9..0134a456e65de1 100644 --- a/template/package.json +++ b/template/package.json @@ -6,7 +6,8 @@ "android": "react-native run-android", "ios": "react-native run-ios", "start": "react-native start", - "test": "jest" + "test": "jest", + "lint": "eslint ." }, "dependencies": { "react": "16.12.0", @@ -17,6 +18,7 @@ "@babel/runtime": "^7.8.4", "@react-native-community/eslint-config": "^0.0.7", "babel-jest": "^25.1.0", + "eslint": "^6.5.1", "jest": "^25.1.0", "metro-react-native-babel-preset": "^0.58.0", "react-test-renderer": "16.12.0"