Dan Vanderkam

Results 371 comments of Dan Vanderkam

I created `RangeHTTPServer` many years ago but can't remember the last time I used it. I'd be very happy if this functionality made it into `SimpleHTTPServer` and I could archive...

Thanks @ljharb. I filed an issue against the React repo, we'll see what they say: https://github.com/facebook/react/issues/21256

@ljharb that usage of `createRef` seems fine and @bvaughn's caveat about "in the top level body of the function component" would prevent a false positive on it.

While the proper home for this rule up in the air, my workaround is to blanket ban `createRef` using the standard `no-restricted-imports` and `no-restricted-properties` rules and use `eslint-disable` to whitelist...

> > how anyone writes code with the autofix for `prefer-const` on! > > πŸ˜„ out of curiosity, how often are your files being saved? Do you have your editor...

I wound up deleting my `main` branch protection and recreating it as best I could remember. > > Would likely be fixed by #1309 > > I think this will...

If migrating from Jest β†’ Vitest is hard and out of scope, that's fine. My suggestion then would be to make the `create-typescript-app` script fail and reset the repo if...

@hajeonghun @stevenaces there's a built-in `PropertyKey` type which is `string | number | symbol`, i.e. anything that TypeScript lets you use to index into another type. See https://github.com/type-challenges/type-challenges/issues/2268

This would also be helpful for keeping `eslint-disable-next-line` comments associated with the thing they are trying to disable: ```ts class C { z = new Date(); // eslint-disable-next-line perfectionist/sort-classes a...

> > If this is different than the initial type of the parameter, then we've got an assertion function. > > This feels like it’s going to turn a lot...