-
Notifications
You must be signed in to change notification settings - Fork 0
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
add eslint back in to setup app #13
Conversation
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.
👍
.eslintrc.json
Outdated
@@ -1,11 +1,13 @@ | |||
{ | |||
"extends": "next/core-web-vitals", |
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.
i wonder if since next is complaining certain files don't exist, maybe this is why? i wonder what happens if we switch to some other base config we wouldn't have to worry about it
and maybe some relevant docs here
i could be overthinking this though 🤔
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.
good catch! I got the error re: next
when running next lint
(removed here) -- but not when running eslint
, even with this setting. But I agree this isn't the best base thing for us to use.
I tried removing the extends
field as well as replacing the above line with "extends": "eslint:recommended"
. Everything seems to work the same, except weirdly, I'm getting the below error in sorter.js
Note that eslint
is even disabled above 😱 . Going to keep looking into this ...
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.
woah 😮 that is so weird!!
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.
heads up that nextjs 15 upgrades eslint to the current version and it's config file format changes. management app change to that is here: https://github.com/safeinsights/management-app/pull/48/files#diff-9601a8f6c734c2001be34a2361f76946d19a39a709b5e8c624a2a5a0aade05f2
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.
okay, i removed next/core-web-vitals
& fixed the above issue by adding config to eslintrc
311d2ec
then the CLI broke in a new weird way (only on Github Actions, worked locally fine). so I updated eslint per nathan's recommendation & migrated eslintrc
to eslint.config.mjs
using the auto-migrator. now everything works again 🤞...
so that was cool and easy and everything worked as expected
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.
i mean -- the current config SHOULD be fine for this project. i just feel like some of these other buggy configs should also have been fine. but whatever 🤷
91278a5
to
8df759d
Compare
I removed some linting in #12, since
next
linting breaks if files we want to 🔥 aren't there. Buteslint
is still helpful, especially for removing unused imports.