-
Notifications
You must be signed in to change notification settings - Fork 26
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Apply recommended lint rules #3524
Open
nicholas-codecov
wants to merge
18
commits into
main
Choose a base branch
from
gh-eng-2124-apply-recommended-rules
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 17 commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
c26bf00
add new deps for eslint rules
nicholas-codecov e1120f3
update eslint related packages
nicholas-codecov 72eb6f6
build out eslint config based off of react-scripts lint rules
nicholas-codecov cc027fc
Merge branch 'main' into gh-eng-2124-audit-and-update-lint-rules-for-…
nicholas-codecov 9130e2c
also remove storybook create-react-app preset
nicholas-codecov 052d2c8
remove duplicated or deprecated rules
nicholas-codecov 5ee1ca4
allow unused vars to be ignored with an underscore
nicholas-codecov 49332de
ignore errors in catch statement with underscores
nicholas-codecov 2f67f48
remove unused vars for their respective type declartions
nicholas-codecov 4c9f62b
use underscore to silence lint warning
nicholas-codecov 614ae25
re-org rules to be split between modified base rules and custom rules
nicholas-codecov 9f7867b
apply recommended rules
nicholas-codecov a8725b2
enable base eslint recomendations
nicholas-codecov b8039c4
apply eslint recommendations to files
nicholas-codecov aced51f
enable typescript-eslint recommended rules
nicholas-codecov 19770fe
fix linting issues
nicholas-codecov 4668dd4
expect ts error for useUpdateRepo as it's not typed yet
nicholas-codecov a8d9dc9
remove these two quick changes that aren't lint related
nicholas-codecov File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
Large diffs are not rendered by default.
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
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
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
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
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
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 |
---|---|---|
|
@@ -82,7 +82,7 @@ describe('MyContextSwitcher', () => { | |
return HttpResponse.json({ data: { me: null } }) | ||
} | ||
|
||
const orgList = !!info.variables?.after ? org2 : org1 | ||
const orgList = info.variables?.after ? org2 : org1 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Linter autofix |
||
const hasNextPage = info.variables?.after ? false : true | ||
const endCursor = info.variables?.after ? 'second' : 'first' | ||
|
||
|
@@ -105,7 +105,7 @@ describe('MyContextSwitcher', () => { | |
|
||
return HttpResponse.json({ data: queryData }) | ||
}), | ||
graphql.query('DetailOwner', (info) => { | ||
graphql.query('DetailOwner', () => { | ||
if (noData) { | ||
return HttpResponse.json({ data: { me: null } }) | ||
} | ||
|
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Auto fix as this wasn't being reassigned