non25
non25
Yeah... That's it: https://github.com/vim/vim/blob/dc167465f87a4f03f9e085597dfcfdde39fcd2b9/runtime/indent/html.vim#L398-L406 Adding this does the job: ```vim elseif a:str == "ts" || a:str = "typescript" return "typescript" ``` Can we somehow override functions from `indent/html.vim` in `svelte.vim`?...
Personally I would do nothing. I feel like the correct solution is to encourage developers to have smaller components and keep things DRY. Developers are discouraged to use leaf components...
@firefish5000 Personally, I like this approach better: https://github.com/sveltejs/svelte/pull/2888#issuecomment-671132029 It is also very small in the form of a patch for a compiled version. This makes component style composition easier and...
I miss generics too. I'll leave one example which I would really appreciate to use generics with: This checkbox selector returns subset of an array of objects without mutating them,...
Wow, keyof is cool. I want to make sure that I understand correctly, so here's another example: ```svelte interface Vegetables { id: number; name: string; weight: number; } let someItems:...
So if I end up in a situation where I need two generics: ```typescript function component(items: X[], someOtherProp: Y) { ... } ``` How that would look in the proposed...
> Sorry, I don't know what you mean. I hope this is a better way to explain. :thinking: ```svelte interface Vegetables { id: number; name: string; weight: number; } let...
> To me this sounds like you mix up some of TypeScript's type system with regular JavaScript. I'm just making mistakes, not used to type `let something: type[] = [];`...
Looks good, maybe we could finally configure compiler-related options for language server, eslint and plugin/loader in one place.
Can we just have an option (per-component like immutable, or whole project), which prevents something like `t1 = space();` from being added to the JS output of the compiler? It...