Skip to content

pullrequests Search Results · user:sindresorhus language:swift archived:false is:public language:Swift language:JavaScript

Filter by

11.9k results  (275 ms)

11.9k results

insindresorhus (press backspace or delete to remove)

Code Quality Problem Implement the core rule logic that detects when an Array method is called on the result of an Iterator .toArray() call (when the method also exists on Iterator.prototype). This enforces ...

Code Quality Problem Disallow variable declarations before early exits when the variable is only used after the exit. , Severity: high File: rules/no-declarations-before-return.js Solution Use the ...

!-- If you re adding a new rule, please follow these steps. Fixes #2458

Hello @sindresorhus I found that this package resolves swapped dimensions for images that are rotated 90 or 270 degrees. For example, in the included large.heic picture. Please consider this contribution ...

This adds error.isCanceled, which is always set as a boolean, and is true when a SubprocessError has been canceled by the signal: abortSignal option. This PR makes sure isCanceled is false if the subprocess ...

WHAT - Support swift-syntax upper bound from 602 to 605 to support 602.x, 603.x and 604.x prereleases. HOW This approach is used in libraries such as [pointfree’s](https://github.com/search?q=org%3Apointfreeco+https%3A%2F%2Fgithub.com%2Fswiftlang%2Fswift-syntax+603.0.0 ...

Problem The no-for-loop rule does not flag the cached-length pattern, which is commonly used as a micro-optimization: for (let i = 0, j = arr.length; i j; i += 1) { const element = arr[i]; console.log(element); ...

✨ Code Quality Problem Prefer process.cwd() over path.resolve() with no arguments. , Severity: low File: rules/prefer-process-cwd.js Solution A new rule file rules/prefer-process-cwd.js should be ...

📝 Documentation Problem Several rule descriptions in the meta.docs.description field state what the rule disallows but not why. For example, no-document-cookie s description is just Do not use document.cookie ...

✨ Code Quality Problem The disableExternalRules function generates an invalid ESLint configuration. It attempts to disable rules by overriding them with an empty object {} as their definition. A valid ...