Skip to content
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

fix-small-eslint-issues #963

Merged

Conversation

benschac
Copy link
Contributor

@benschac benschac commented May 7, 2022

What does this PR do and why?

Follow up on ESLint changes from here: #876 (comment)

Screenshots or screen recordings

Acceptance checklist

@benschac
Copy link
Contributor Author

benschac commented May 7, 2022

@benschac benschac marked this pull request as ready for review May 9, 2022 00:32
@benschac benschac force-pushed the 05-07-fix-small-eslint-issues branch from c5b269e to 7f08567 Compare May 9, 2022 01:06
@@ -82,8 +82,7 @@ export default function ManageTokensModal({
plural: true,
})

// eslint-disable-next-line no-extra-boolean-cast
const redeemDisabled = !Boolean(hasOverflow)
const redeemDisabled = !hasOverflow
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wasn't 100% about going around and renaming these.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

na feels good 👍

@@ -94,11 +92,10 @@ export default function ProjectReserved({
label={
hideLabel ? undefined : (
<>
{shouldRenderToggle ? (
{onToggled ? (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

but, I renamed this one since it was just one variable.

@@ -53,7 +53,7 @@ export default function ImageUploader({
borderRadius: theme.radii.md,
}}
src={url}
alt="Uploaded image"
alt="Uploaded user content"
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't in the initial warning, but it was showing up. It might have just been a stale yarn cache that didn't catch this rule the first time because my bundle/lint changed so dramatically between branches.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hah, nice. I like this rule :D

@@ -59,7 +59,7 @@ export default function IssueTokenModal({
transactionPending={transactionPending}
>
<p>
{!Boolean(isNewDeploy) ? (
{!isNewDeploy ? (
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This wasn't in the initial warning, but it was showing up. It might have just been a stale yarn cache that didn't catch this rule the first time because my bundle/lint changed so dramatically between branches.

Same here.

{/* Added a hidden input here because Form.Item needs
a child Input to work. Need the parent Form.Item to
{/* Added a hidden input here because Form.Item needs
a child Input to work. Need the parent Form.Item to
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was prettier. Honestly curious how this happened.

Copy link
Contributor

@aeolianeth aeolianeth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for this one @benschac , LGTM!

@benschac benschac merged commit a9e7c6b into 04-26-update_eslint_configuration May 11, 2022
@benschac benschac deleted the 05-07-fix-small-eslint-issues branch May 11, 2022 22:14
benschac added a commit that referenced this pull request May 11, 2022
* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint
benschac added a commit that referenced this pull request May 11, 2022
* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint
benschac added a commit that referenced this pull request May 11, 2022
* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint
benschac added a commit that referenced this pull request May 11, 2022
* add missing polyfills and modules

* remove unused code

* update uniswap v3 sdk (#870)

* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint
benschac added a commit that referenced this pull request May 11, 2022
* add rewire to project

* add rewire commands

* add missing polyfills and modules (#869)

* add missing polyfills and modules

* remove unused code

* update uniswap v3 sdk (#870)

* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint
benschac added a commit that referenced this pull request May 12, 2022
* add rewire to project

* add rewire commands

* add missing polyfills and modules (#869)

* add missing polyfills and modules

* remove unused code

* update uniswap v3 sdk (#870)

* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint
benschac added a commit that referenced this pull request May 15, 2022
* add rewire to project

* add rewire commands

* add missing polyfills and modules (#869)

* add missing polyfills and modules

* remove unused code

* update uniswap v3 sdk (#870)

* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint
benschac added a commit that referenced this pull request May 21, 2022
Add rewired to project (#868)

* add rewire to project

* add rewire commands

* add missing polyfills and modules (#869)

* add missing polyfills and modules

* remove unused code

* update uniswap v3 sdk (#870)

* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint

fix linting issues from main

bump eslint dep

fix up remaining tyscript issues

fix CI build

bump jest, configure jest, configure eslint

fix package lock
aeolianeth pushed a commit that referenced this pull request Jun 2, 2022
Add rewired to project (#868)

* add rewire to project

* add rewire commands

* add missing polyfills and modules (#869)

* add missing polyfills and modules

* remove unused code

* update uniswap v3 sdk (#870)

* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint

fix linting issues from main

bump eslint dep

fix up remaining tyscript issues

fix CI build

bump jest, configure jest, configure eslint

fix package lock
aeolianeth pushed a commit that referenced this pull request Jun 2, 2022
Add rewired to project (#868)

* add rewire to project

* add rewire commands

* add missing polyfills and modules (#869)

* add missing polyfills and modules

* remove unused code

* update uniswap v3 sdk (#870)

* update uniswap v3 sdk

* update json imports in app (#871)

* update json imports in app

* update eslint configuration (#876)

* update eslint configuration

* remove eslint, set react version

* remove issuetickets component

* fix-small-eslint-issues (#963)

* fix-small-eslint-issues

* set config overrides file as node / common js for eslint

fix linting issues from main

bump eslint dep

fix up remaining tyscript issues

fix CI build

bump jest, configure jest, configure eslint

fix package lock
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants