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
However it only shows how to inline the customizations in the eslint.config.mjs file in current project.
I would like to have a sharable eslint config for Nuxt projects, that I can reuse. The sharable eslint config would include appending plugins, renaming, overriding some rules etc.
I can do it with a specialized function, but I dont feel like it is the right way.
Thanks. That is a great thread. As I can see you are passing an array of company specific configurations into withNuxt function. That looks right.
However I'm not sure if you can override a config from @nuxt/eslint or rename a config. I like the API from eslint-flat-config-utils, which lets you compose the final config in an expressive way.
While I'm thinking about it maybe the main motivation was to have nice looking output in eslint config inspector, which is really great to make sense of the final config. However having the shared configuration in a simple array is also benefitial.
I'm definitely going to try your monorepo setup.
Since there might be another way how to solve this and the packages involved might be evolving more (no version 1 yet), I'm goint to leave this discussion open.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is a short documentation about how to extend Eslint config coming from
@nuxt/eslint
module here: https://eslint.nuxt.com/packages/module#config-customizationsHowever it only shows how to inline the customizations in the
eslint.config.mjs
file in current project.I would like to have a sharable eslint config for Nuxt projects, that I can reuse. The sharable eslint config would include appending plugins, renaming, overriding some rules etc.
I can do it with a specialized function, but I dont feel like it is the right way.
The function might look like this:
eslint-flat-config-utils
?Thank you for any ideas.
Beta Was this translation helpful? Give feedback.
All reactions