-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use local eslint executable if available
Summary: This diff is intended to make a little progress on [[ https://docs.google.com/document/d/12hbgMCT6c5-fLZ7_fpUQWF8GkuCh-N-Kl4D7cruYMS4/edit#heading=h.zcx77itbdtis | ADR #273 ]]. In D62269 I updated webapp to include all necessary eslint plugins and verified that the local eslint executable can be run with the same results as ka-lint which until this diff uses the eslint executable in this repo. This diff updates khan-linter to use the local eslint executable in the repo of the file being linted if it exists. If it doesn't it falls back to the eslint executable in the khan-linter repo. Issue: none Test Plan: - in webapp (has its own eslint): ka-lint javascript/about-package - in kpi-dashboard (no local eslint): ka-lint src/team Reviewers: #frontend-infrastructure, benkraft, csilvers Reviewed By: csilvers Subscribers: csilvers Differential Revision: https://phabricator.khanacademy.org/D62270
- Loading branch information
1 parent
b2bf12e
commit af4f8c6
Showing
2 changed files
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters