#What's a valid lint command for a NextJS project?

10 messages · Page 1 of 1 (latest)

brittle hull
#

At the moment I ended up with eslint . && tsc due to next lint originally not picking up my ESLint, but I think it was a skill issue honestly and wanted to know if next lint alone will do the same things, or if say next lint && tsc is necessary.

vivid gazelleBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

dim chasm
#

@brittle hull unless explicitly disabled in the next config, nextjs will always run tsc as part of the build process and fail your builds if there are errors

#

I also use eslint directly instead of next lint

#

since i have extra configs it doesnt pick up (but maybe that may have been a config issue on my behalf)

#

running tsc isn't something i typically do during lint since those errors would be caught during build, but thats subjective

brittle hull
#

I'll probably end up sticking with ESLint + TSC for linting, is there a reason why you prefer ESLint over next lint?

dim chasm
#

I extend the default lint rules next provided with other ones

brittle hull