Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fixed linter crash when eslintrc is missing from a repo, but the repo…
… has eslintrc.js Summary: The olc repo doesn't have an `.eslintrc` but instead has an `eslintrc.js`, because that way you can have comments in the rc, and that's _way_ cooler than no comments.... Khan linters, called by the `pre-push.linter` hook, crashes if there isn't an `.eslintrc` file. Now it checks for both. Issue: <url or "none"> Test Plan: In the olc repo, with the pre-push hooks all enabled: `$ git co -b new-branch` (maybe make a change and commit so there's something to lint?) `$ git push -u origin new-branch` See that linter doesn't crash anymore Reviewers: kevinb, csilvers, john, adamgoforth Reviewed By: kevinb, csilvers, john, adamgoforth Subscribers: csilvers, kevinb Differential Revision: https://phabricator.khanacademy.org/D73218
- Loading branch information