fisker Cheung

Results 335 issues of fisker Cheung

### Description Use `.some()` or `.every()` check on one array repeatly can simplify to use one call. ### Fail ```js if ( array.some(element => element.foo === 1) || array.some(element =>...

help wanted
new rule

### Description In #2386 we are removing autofix and suggestions from `Promise.all()` since it returns an array, but we can add autofix for ```js const [foo] = await Promise.all([promise]); ```...

enhancement
help wanted

### Description Forbid use `.length` as the `end` argument of `{Array,String,TypedArray}#slice()` ### Fail ```js array.slice(start, array.length) ``` ```js array?.slice(start, array.length) ``` ### Pass ```js array.slice(start) ``` ```js array?.slice(start) ``` ###...

evaluating

### Before You File a Proposal Please Confirm You Have Done The Following... - [X] I have [searched for related issues](https://github.com/typescript-eslint/typescript-eslint/issues?q=is%3Aissue+label%3A%22enhancement%3A+plugin+rule+option%22) and found none that match my proposal. - [X]...

enhancement
awaiting response

Instead of ```js {foo: new RegExp("a", "i")} ``` serialize to ```js {foo: /a/i} ```

A hacky way to make the lib usable without `--no-experimental-fetch`, I'm using this hack by adding `var fetch;` to the entry file before import the package. https://github.com/fisker/vite-plugin-image-squoosh/pull/3/files

## Description ## Checklist - [ ] I’ve added tests to confirm my change works. - [ ] (If changing the API or CLI) I’ve documented the changes I’ve made...

## Description See https://blog.stackblitz.com/posts/pkg-pr-new/ ## Checklist - [ ] I’ve added tests to confirm my change works. - [ ] (If changing the API or CLI) I’ve documented the changes...