m-shum
m-shum
NNuxt
Created by Rudo Kemper on 2/17/2025 in #❓・help
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
NNuxt
Created by Rudo Kemper on 2/17/2025 in #❓・help
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
NNuxt
Created by Rudo Kemper on 2/17/2025 in #❓・help
Does anyone have a great eslint+typescript Nuxt 3 setup?
Seconded. I'm trying to get this working and so far it's been a mess.
10 replies
NNuxt
Created by Rush on 7/10/2024 in #❓・help
Pinia store socket.io error
I keep getting this same error but not with a socket. When I tried committing an AccessController to a pinia state, the application errored out.
11 replies
NNuxt
Created by m-shum on 10/31/2024 in #❓・help
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
NNuxt
Created by m-shum on 10/31/2024 in #❓・help
Cannot start nuxt: EMFILE: too many open files
^ already done all of this.
17 replies
NNuxt
Created by m-shum on 4/22/2024 in #❓・help
Best way to detect hydration completion
Ah gotcha @cuebit , again thank you so much, this works beautifully and is quite elegant!
8 replies
NNuxt
Created by m-shum on 4/22/2024 in #❓・help
Best way to detect hydration completion
@cuebit Apologies if this is a stupid question but what is being passed into onHydrated (the 'cb' arg)
8 replies
NNuxt
Created by m-shum on 4/22/2024 in #❓・help
Best way to detect hydration completion
That's a wonderful solution @cuebit
8 replies