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
- Read the contribution guide.
- Check existing discussions and issues.
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. ๐