-
|
I'm facing a issue, when I run shouldn't |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
Well, You can of course extend/override |
Beta Was this translation helpful? Give feedback.
-
|
@icyJoseph I still don't understand how all this eslint config works for Nextjs. My setup runs Nextjs in a docker container. And they produce different results when eslint and next lint use the same config file. And I wonder why that would happen. So in the case of "next lint" the full command that dockerised env runs is "next lint -c /app/.eslintrc.json" and in the case of eslint its "eslint -c /app/.eslintrc.json". as far as I can tell they both use the same file, since when I add "s" to the end of the file, they both complain the file is missing. But results are different: and eslint: My goal here is to understand how I can make sure that any of them work the same. Because they don't pick up the same errors. |
Beta Was this translation helpful? Give feedback.
-
|
|
Beta Was this translation helpful? Give feedback.
-
|
next lint does not allow you to use the config in a nested directory. Well done developers, again they did everything very, very flexibly. |
Beta Was this translation helpful? Give feedback.
Well,
next lintdoes useeslint, but the thing is that, IIRC,eslintlooks for a configuration file at the root of your project, or you can tell it where to look for it as a CLI option, whereasnext lint's ESLINT configuration it's just not visible to you.You can of course extend/override
next lint, with your own stuff, but I'd say, unless your team fully agrees on various conventions, it's best to just takenext lint's rules.