m-shum
Does anyone have a great eslint+typescript Nuxt 3 setup?
I think out of the box all I needed was to add typescript as a devDependency (as per the docs) – eslint handled the rest for me. I did have to make sure I disabled my Prettier extension and had to fiddle with the default formatter. I don't use vue-tsc (I don't think?). The TS linting definitely works, though you may run into weird formatting behavior that isn't highlighted – for example, if you declare an object type, you have to put a line break between it and anything beneath it, or it could mess up the syntax highlighting of your chosen theme. At least that's what I found.
10 replies
Does anyone have a great eslint+typescript Nuxt 3 setup?
I'm using the official nuxt eslint package with TS support but the syntax highlighting is all over the place if you leave semicolons disabled.
@Rudo Kemper You might have better luck than me with just using the official nuxt module. I gave up on doing all that by hand a long time ago.
10 replies
Cannot start nuxt: EMFILE: too many open files
I still haven't figured out what was causing this issue. Ended up having to create a completely fresh build using the storyblok starter. The trick was not to update the nuxt module. I've a feeling the SB nuxt module hasn't updated their nuxt version, but I honestly haven't had time to check.
17 replies