silverwind

Results 1267 comments of silverwind

This would break many things on the web that depends on the [paste](https://developer.mozilla.org/en-US/docs/Web/API/Element/paste_event) event, like image paste on GitHub.

You can take a hint from `tar` which has an option for to strip `count` leading path elements on extract: ```` --strip-components count (x mode only) Remove the specified number...

It works in eslint 8, but eslint 9 support would be nice too 😆.

@dustinspecker any chance this is happening?

Also consider exposing a API to plugins to register certain types that don't ship by default, so for example a yaml parser could register `type: 'yaml'`. To support binary formats,...

I noticed is that import attributes are incorrectly removed when `build.target` is `esnext` or `node18`, e.g.: ```js import tlds from "tlds" with {type: "json"}; ``` becomes ```js import tlds from...

> Here's the related esbuild issue which confirms it should be working with `target: 'node21'` > > * [Import attributes should be enabled for `node18` and >= `node20` targets evanw/esbuild#3778](https://github.com/evanw/esbuild/issues/3778)...

Never heard about knip, but I'm generally in favor of at least disabling rules that are duplicate with what typescript already validates, if the linted file is typescript, of course....

In https://github.com/import-js/eslint-plugin-import/pull/3018 they used `@nodelib/fs.walk` to replace it, if I understand correctly. Seems like a popular enough dependency to use.

Maybe @michaelfaith would be interested in porting their work here in case that PR stalls because of those "node 4 concerns" which we do not have with this fork 😆.