David Sherret

Results 804 comments of David Sherret

Also, sorry this is so difficult to setup. Please go upvote this issue: https://github.com/Microsoft/TypeScript/issues/14419

Not implemented yet. Will do soon!

Temporary workaround when using Babel (should work fine with TS compiler) is to change this: ```ts nameof(a => a.optObject?.propertyA) ``` To this: ```ts nameof(a => a.optObject!.propertyA) ``` By the way,...

Hey @dheerajbhaskar, it's not possible to import it because ts-nameof transforms the code at compile time. As a sidenote, you'll want to include it under `devDependencies` rather than `dependencies` for...

@hanvyj sorry for my delay. I don't think there's an easy way of doing this right now. I believe only the following works: ```ts `${nameof()}.${nameof(u => u.getUser)}` ``` I'll try...

Another similar example from @declanvong: https://dprint.dev/playground/#code/GYexAoDsFMHcAIDyAjAVuA3gKHr+BDALnlBABoc9ljl8AnCgXwEpmBuIA/language/typescript ```ts foo(new Obj({ a: foo, b: bar, })); ``` Outputs: ```ts foo( new Obj({ a: foo, b: bar, }), ); ``` (I know these...

@jgeurts what are you using the schema for? Also, what would a dprint eslint plugin do? For some tools you can just provide the schema url, which is in the...

Thanks, but I don't think we should do this since prettier doesn't do it. Instead I think we should copy prettier's behaviour and leave decorators on the same line that...

So currently for "quoteStyle" there is: - alwaysDouble - alwaysSingle - preferDouble - preferSingle I think we could add: - alwaysTemplate (or maybe alwaysBacktick to follow eslint terminology, though I...

The code right now is not optimized for formatting minified files. It seems to take a long time in the playground too, so not a wasmer issue. Would be good...