-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Get working for eslint 8 with flowtype plugin (#33)
## Summary: So, it was failing to resolve `eslint/use-at-your-own-risk` from inside a plugin. I suspect this was down to module resoluton issues due to the way we programmatically require `eslint`. So, rather than do that, I wrote it to invoke the CLI instead and let GitHub scrape the annotations (which it supports). This feels more robust to future change by keeping the action's node module resolution independent of the code being checked. I don't know why the lint step is doing what it's doing. I ran lint locally and all is fine - I suspect it may be suffering from the same issue that I'm fixing with this PR. Issue: FEI-4138 ## Test plan: I added this to my webapp PR and checked that it now works (waiting on final confirmation, but it's doing far more than it was before these changes) See https://github.com/Khan/webapp/runs/4292013711?check_suite_focus=true Author: somewhatabstract Reviewers: somewhatabstract, jeresig Required Reviewers: Approved By: jeresig Checks: ❌ lint_and_unit, ✅ autofix Pull Request URL: #33
- Loading branch information
1 parent
1da5c69
commit d2cca53
Showing
10 changed files
with
134,398 additions
and
116,016 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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ node_modules | |
.cache | ||
.idea | ||
coverage | ||
yarn-error.log |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"parser": "babel-flow", | ||
"tabWidth": 4, | ||
"printWidth": 100, | ||
"trailingComma": "all", | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
// @flow | ||
|
||
describe('a test that does nothing', () => { | ||
it('should work', async () => { | ||
}); | ||
it('should work', async () => {}); | ||
}); |
Oops, something went wrong.