You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Edit: I suppose the issue disappears when moving eslintrc.json in to the src/ directory however obviously this means the top level directory won't have eslintrules. So for the moment I've defined two eslintrc.json files - I don't know if this is the intended way of doing this:
With the previous config format, it's not possible for us to have rules that aware the project configurations (custom rootDir). #332 should fix it (tho it's for Nuxt 3). Otherwise, I think the workaround is for you to disable it manually with local overrides.
Reproduction:
nuxt.config.ts
and change srcDir tosrc/
src/
directory. But keepeslintrc.json
in the root directory still.I face issues that my layout/page components are not multiword components:
I can see this is because the ESLint rule is very particular about the pages/layout directory being at the top level:
https://github.com/nuxt/eslint-config/blob/d4250a6e4d57835d7c9d3c017ab82a1f55383c98/packages/eslint-config/index.js#L130
It's fixable with the following override in
eslintrc.json
, but feels dirty:Edit: I suppose the issue disappears when moving
eslintrc.json
in to thesrc/
directory however obviously this means the top level directory won't have eslintrules. So for the moment I've defined twoeslintrc.json
files - I don't know if this is the intended way of doing this:/eslintrc.json
:/src/eslintrc.json
:The text was updated successfully, but these errors were encountered: