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

[chore] modify ESLint rules and resolve package vulnerabilities #20

Conversation

jinkang-0
Copy link
Contributor

@jinkang-0 jinkang-0 commented Oct 18, 2023

🎋 Description

🌴 What's new in this PR

Modified .eslintrc.js to include the new ESLint rules.
Modified package.json to allow npm to perform audit fix on next dependencies.

🌲 Screenshots

End result
Screenshot 2023-10-18 at 4 35 23 PM
Screenshot 2023-10-18 at 4 37 35 PM

No red squigglies 😌

Screenshot 2023-10-18 at 4 40 56 PM

No vulnerabilities ☺️

image

console.log bad, console.error good 👍

🌳 How to review

Recommended to first fetch this branch with

git fetch origin jinkang/ijp-38-resolve-eslint-issuescomplaints-and-update-packages

Then switch to this branch with

git switch jinkang/ijp-38-resolve-eslint-issuescomplaints-and-update-packages

To review, check whether or not Lint complains about labels not having an associated input (when it has an htmlFor property). Also test if it complaints when you only export one thing without doing export default.

Lastly, run npm audit to see if there are any vulnerabilities. It should say 0 vulnerabilities.

🌱 Next steps

🔗 Relevant Links

ℹ️ Online sources

🪴 Related PRs

CC: @pragyakallanagoudar

@linear
Copy link

linear bot commented Oct 18, 2023

IJP-38 Resolve ESLint issues/complaints and update packages

Since we'll have to update package.json and package-lock.json anyways, might as well update the packages as well.

ESLint issues to resolve:

  • Label-input relationship
  • Prefer export default

Copy link
Collaborator

@pragyakallanagoudar pragyakallanagoudar left a comment

Choose a reason for hiding this comment

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

Sorry it's taken me so long to get around to this!

@pragyakallanagoudar pragyakallanagoudar merged commit 0f30685 into main Oct 30, 2023
2 checks passed
@pragyakallanagoudar pragyakallanagoudar deleted the jinkang/ijp-38-resolve-eslint-issuescomplaints-and-update-packages branch October 30, 2023 19:44
ccatherinetan pushed a commit that referenced this pull request Nov 2, 2023
* resolved package vulnerabilities and eslint issues

* updated no-console rules

* include warn in console rule (oops)
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