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
It would be great to allow users to create custom configs based on the Nuxt layers/dirs.
Use case:
exportdefaultwithNuxt().append((options)=>{const{ dirs }=resolveOptions(options)return{name: 'custom:layer-based-config',files: dirs.src?.map(srcDir=>join(srcDir,`config/*.${GLOB_EXTS}`))||[]),rules: {// some rules for config directory files inside each layer},}})
It can be done with eslint:config:addons hook, but it is not the easiest way.
Additional information
Would you be willing to help implement this feature?
enkot
changed the title
Allow config as a function that takes options object
Allow config as a function to create custom configs with access to dirsApr 2, 2024
Describe the feature
It would be great to allow users to create custom configs based on the Nuxt layers/dirs.
Use case:
It can be done with
eslint:config:addons
hook, but it is not the easiest way.Additional information
Final checks
The text was updated successfully, but these errors were encountered: