Janic Duplessis 4807290442 Fix cli config file on Windows
Summary:The local-cli didn't pickup the `rn-cli.config.js` file on Windows because the root of a path is not 1 character long since it is 'C:/' and broke the path operations. This just substrings the root length instead of hard coding 1.

Also fix a lint warning in the file about path concatenation but using string interpolation.

Fixes  #5686

**Test plan (required)**

Tested that the `findParentDirectory` function returns the path of `rn-cli.config.js` if present or null if not on both windows and mac.
Closes https://github.com/facebook/react-native/pull/6553

Differential Revision: D3075196

Pulled By: mkonicek

fb-gh-sync-id: a19ab4030ec22d85bef40d7d91de53bc1da072ca
shipit-source-id: a19ab4030ec22d85bef40d7d91de53bc1da072ca
2016-03-20 18:09:20 -07:00
..
2015-09-16 13:05:30 -07:00
2015-11-12 07:05:01 -08:00
2016-03-18 12:45:29 -07:00
2016-03-18 12:45:29 -07:00
2015-10-27 11:22:28 -07:00
2016-03-17 15:06:26 -07:00
2016-02-09 15:38:37 -08:00
2016-03-20 18:09:20 -07:00
2016-03-06 18:56:27 -08:00
2015-10-28 21:36:07 -04:00