Skip to content

Conversation

CodeWritingCow
Copy link
Contributor

@CodeWritingCow CodeWritingCow commented Jul 22, 2024

Description

This PR addresses issue #822 where merged PRs are failing to deploy to Vercel's preview and production environments. It appears that npm run build is failing due to new plugins recently added to .eslintrc.json. These plugins appear to enforce strict TypeScript-ESLint rules.

This PR reduces the severity of two common TS rules. ESLint now issues a warning instead of throwing errors for them:

  • @typescript-eslint/no-explicit-any
  • @typescript-eslint/no-unused-vars

This PR also removes some unused variables.

How this was tested

Before reducing the rules' severity, running npm run lint in local env produced these errors:

Screen Shot 2024-07-22 at 1 58 43 AM

After reducing their severity, running npm run lint produced warnings instead of errors:

Screen Shot 2024-07-22 at 1 58 18 AM

nlebovits and others added 5 commits July 19, 2024 22:23
temporarily disable release and release-drafter workflows
Fix "assigned a value but never used" errors.
Change severity of "no-explicit-any"
and "no-unused-vars" rules
from "error" to "warning."
Copy link

vercel bot commented Jul 22, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
vacant-lots-proj ❌ Failed (Inspect) Jul 22, 2024 5:58am

@CodeWritingCow CodeWritingCow added the bug Something isn't working label Jul 22, 2024
@CodeWritingCow CodeWritingCow marked this pull request as ready for review July 22, 2024 06:07
@CodeWritingCow CodeWritingCow merged commit b561103 into CodeForPhilly:staging Jul 22, 2024
@CodeWritingCow
Copy link
Contributor Author

CodeWritingCow commented Jul 22, 2024

I merged this PR so I can get the changes to .eslintrc.json ready for deployment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working frontend
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants