Difference between opinionated and unoppinionated packages #256
Replies: 2 comments
-
@katerlouis, I second your confusion about the almost identically named packages/configs. At least the (nonfunctional) So the new config meant to be used in Nuxt 3 seems to be |
Beta Was this translation helpful? Give feedback.
-
I think rules that this config applies and differences between |
Beta Was this translation helpful? Give feedback.
-
It just took over an hour to realize that there's a difference between
@nuxtjs/eslint-config
and@nuxt/eslint-config
:F – yaix.But still.. Why is one extend saying just
@nuxtjs
(withouteslint-config
) while the other is explicitly saying@nuxt/eslint-config
– Is that eslint magic just assuming/searching for aneslint-config
inside of@nuxtjs
(nuxtjs!!)? – If thats the case, I can tell you from a noob perspective, this is really confusing and I would expect the docs to treat both extends the same; either with or withouteslint-config
What file is
@nuxtjs
using anyway? Is itpackages/eslint-config-legacy
?And why exactly does
@nuxtjs
need babel-parser? For me its working without it (which is kinda scary to be honest :D)Is there a recommendation for nuxt3 or do both the opinionated and unopinionated version work equally fine with nuxt3? It feels like
@nuxtjs
is nuxt2 and just@nuxt
is nuxt3, like with nuxtjs.org and nuxt.com 🤷The opinionated version is giving me an error for undefined
onMounted()
while the unopinionated is cool with it; is that by design or are there just so few rules in the unopionated?Sorry for these questions, but eslint with its magic and nuxt/nuxtjs is really confusing to me :(
Beta Was this translation helpful? Give feedback.
All reactions