beerman
beerman
DDeno
Created by beerman on 1/20/2025 in #help
batching tasks
I struggle to see how sticking with Deno over Bun or even Node would bring you any tangible benefits—at least not on the same level as choosing Svelte over React, for example. I can’t quite get behind that decision, but to each their own.
12 replies
DDeno
Created by beerman on 1/20/2025 in #help
batching tasks
Community and adoption are also severely lagging. Deno is great but it's still a litte early. Give it another year or two.
12 replies
DDeno
Created by beerman on 1/20/2025 in #help
batching tasks
Many things don't work, including SvelteKit. Which is why almost every project I tried to build with Deno was inevitably migrated to Bun at one point or another.
12 replies
DDeno
Created by beerman on 1/20/2025 in #help
batching tasks
I migrated the project to bun due to Deno’s comparibility issues with Convex. I will probably end up using it sometime down the road though
12 replies
DDeno
Created by beerman on 1/20/2025 in #help
batching tasks
this is awesome
12 replies
DDeno
Created by y@ on 4/26/2024 in #help
Neovim setup with LSP formatting & linting
Actually, I don't even think you need to include the configuration for js and ts since denols will run those for you and conform automatically handles lsp formatters if you have lsp_fallback enabled.
16 replies
DDeno
Created by y@ on 4/26/2024 in #help
Neovim setup with LSP formatting & linting
If you just want to quickly get up and running, add denols to your list of servers in your lspconfig, making sure that deno.enable and deno.lint are both set to true. Next, add this plugin https://github.com/stevearc/conform.nvim and include the following in its setup options:
local options = {
formatters_by_ft = {
lua = { "stylua" },
css = { "deno_fmt" },
html = { "deno_fmt" },
javascript = { "deno_fmt" },
typescript = { "deno_fmt" },
json = { "deno_fmt" },
jsonc = { "deno_fmt" },
javascriptreact = { "deno_fmt" },
typescriptreact = { "deno_fmt" },
markdown = { "deno_fmt" },
},

format_on_save = {
enabled = true,
timeout_ms = 2000,
lsp_fallback = true,
},
}
local options = {
formatters_by_ft = {
lua = { "stylua" },
css = { "deno_fmt" },
html = { "deno_fmt" },
javascript = { "deno_fmt" },
typescript = { "deno_fmt" },
json = { "deno_fmt" },
jsonc = { "deno_fmt" },
javascriptreact = { "deno_fmt" },
typescriptreact = { "deno_fmt" },
markdown = { "deno_fmt" },
},

format_on_save = {
enabled = true,
timeout_ms = 2000,
lsp_fallback = true,
},
}
16 replies
DDeno
Created by y@ on 4/26/2024 in #help
Neovim setup with LSP formatting & linting
ESLint is not a formatter - it's a linter.
16 replies
DDeno
Created by y@ on 4/26/2024 in #help
Neovim setup with LSP formatting & linting
Listen to me, do yourself a favour and start reading documentation :h lspconfig is a good start.
16 replies
DDeno
Created by y@ on 4/26/2024 in #help
Neovim setup with LSP formatting & linting
It appears that you don't even know how neovim works.
16 replies
DDeno
Created by y@ on 4/26/2024 in #help
Neovim setup with LSP formatting & linting
What are you talking about?
16 replies
DDeno
Created by y@ on 4/26/2024 in #help
Neovim setup with LSP formatting & linting
Install conform then add your deno formatter to ft by file type and enable format on save
16 replies
DDeno
Created by beerman on 1/10/2023 in #help
Trouble importing npm modules
11 replies
DDeno
Created by beerman on 1/10/2023 in #help
Trouble importing npm modules
11 replies
DDeno
Created by beerman on 1/10/2023 in #help
Trouble importing npm modules
11 replies
DDeno
Created by beerman on 1/10/2023 in #help
Trouble importing npm modules
Hey, I use "dev": "deno run -A --node-modules-dir npm:vite",
11 replies
DDeno
Created by beerman on 1/10/2023 in #help
Trouble importing npm modules
Yes, absolutely. Copied from my node project. https://www.npmjs.com/package/@web3-onboard/core
11 replies