From 14398752e3f6a636d3e712db787ef483348fa736 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 [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 5f3fc79996f..71a3f1f519c 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.11.0", @@ -17,6 +18,7 @@ "@babel/runtime": "^7.6.2", "@react-native-community/eslint-config": "^0.0.5", "babel-jest": "^24.9.0", + "eslint": "^6.5.1", "jest": "^24.9.0", "metro-react-native-babel-preset": "^0.56.0", "react-test-renderer": "16.11.0"