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: upgrade to eslint 9.x #625

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

chore: upgrade to eslint 9.x #625

wants to merge 1 commit into from

Conversation

43081j
Copy link

@43081j 43081j commented Dec 27, 2024

Upgrades ESLint and moves to the new flat config style.

Also fixes up some newly found lint errors/warnings and enables TSESLint's strict config.

I was roaming around the repo so figured I'd do this while I'm in there. if you don't want it, all good just let me know and we can close this 👍

Notes

  • Locally, for whatever reason, npm run build:ts fails with a lot of errors. is that known to be broken? (in main)
  • Do we need our own full blown config still? maybe we could use the recommended configs from ESLint, stylistic and tseslint
  • could we introduce a formatter like prettier or dprint, and drop stylistic?

Upgrades ESLint and moves to the new flat config style.

Also fixes up some newly found lint errors/warnings and enables
TSESLint's strict config.
Copy link

netlify bot commented Dec 27, 2024

Deploy Preview for colorjs ready!

Name Link
🔨 Latest commit 9b6ef8d
🔍 Latest deploy log https://app.netlify.com/sites/colorjs/deploys/676e936c78251f0008174548
😎 Deploy Preview https://deploy-preview-625--colorjs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@@ -202,7 +203,7 @@ export default class Notebook {
}
catch (e) {
// Syntax error
var error = e;
Copy link
Author

Choose a reason for hiding this comment

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

I feel like there may have been a reason this used var. let me know if we cant make this change

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.

1 participant