nuxt/eslint

docs: add how to use composer

shinGangan opened this issue ยท 3 comments

Describe the feature

withNuxt and createConfigForNuxt can be customized using FlatConfigComposer.
(Thanks for making FlatConfigComposer ๐Ÿ’š)

However, there is little mention of FlatConfigComposer in the document.
Therefore, it is expected that the following issues and discussions will increase.
ใƒปHow should I extend Config?
ใƒปI want to set xyz as before. What should I do in that case?
ใƒปHow do I use . prepend?

I think it would be better to include the customization method in the documentation to reduce/avoid responding to this question.

My Opinion

add Guide > Customizing the Config section and add this page.
This page is write post simple instructions on how to use .append, .override and etc.

In addition, any questions that may be asked in the future (e.g., How should I coexist with Prettier?) will be listed separately in the FAQ.

Additional information

  • Would you be willing to help implement this feature?
  • Could this feature be implemented as a module?

Final checks

Hi @antfu , I would appreciate it if you could comment when you have time. ๐Ÿ™

Thanks for making FlatConfigComposer ๐Ÿ’š

We explained here, isn't it? https://eslint.nuxt.com/packages/module#config-customizations

If you think there are any detailed docs needed, they should also go to https://github.com/antfu/eslint-flat-config-utils#composer

I arrived here and figured out the details, but looking at the Discussion, it didn't seem like that was the case. That's why I asked the question.

I understand that this is considered to be no problem.
Thank you for your comment. ๐Ÿ™