Open xmatthias opened 1 month ago
Thanks for reporting this! We'll investigate this issue.
@all-contributors add @xmatthias for bugs
@mohab-sameh
I couldn't determine any contributions to add, did you specify any contributions? Please make sure to use valid contribution names.
I've put up a pull request to add @xmatthias! :tada:
Adding a bit more details here - it seems to happen in nuxt/4/file-structure
- only leaving that part ticked yields the following output - somewhere in the middle.
Moving /home/xmatt/devel/javascript/projectdir/components/Pricing/Plans.vue to /home/xmatt/devel/javascript/projectdir/app/components/Pricing/Plans.vue
FILE /home/xmatt/devel/javascript/projectdir/eslint.config.mjs
import withNuxt from './.nuxt/eslint.config.mjs';
import withNuxt from '.nuxt/eslint.config.mjs';
Moving /home/xmatt/devel/javascript/projectdir/composables/useToast.ts to /home/xmatt/devel/javascript/projectdir/app/composables/useToast.ts
...
Original
Expected
Actual
(nothing else in the eslint file was modified).
Estimated impact
Numbers about your specific codemod run:
Logs:
// Please insert the contents of a log file generated by the codemod run here.
Additional context
In a regular nuxt project with eslint using flatconfig configured, i'm running the following migration script (according to the nuxt docs).
npx codemod@latest nuxt/4/migration-recipe
This also updates
eslint.config.mjs
(wrongly)Result:
Now unfortunately - the modification causes eslint to complain (quite loudly)
Reverting this line fixes the problem - though i guess this shouldn't happen for a smooth migration between nuxt3 to nuxt4.