nuxt / eslint

Collection of ESLint-related packages for Nuxt
https://eslint.nuxt.com
MIT License
539 stars 65 forks source link

docs: add how to use composer #440

Closed shinGangan closed 4 months ago

shinGangan commented 4 months ago

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

Final checks

shinGangan commented 4 months ago

Hi @antfu , I would appreciate it if you could comment when you have time. 🙏

Thanks for making FlatConfigComposer 💚

antfu commented 4 months ago

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

shinGangan commented 4 months ago

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. 🙏