fisker Cheung
fisker Cheung
### Description A repo can contain many submodules, they should only share code via the entries, but not import internal files directly. This rule should require a configuration step, it...
``` ├───rules/ ├───prefer-at/ (rule directory) ├───prefer-at.js (rule file) ├───... (other files or directories for rule) ├───readme.md (rule docs, need to exclude when publishing, maybe use `prefer-at.md`?) └───tests/ (rule tests directory,...
```js ## invalid(6): const foo = Date(bar); > Input `␊ 1 | const foo = Date(bar);␊ ` > Error 1/1 `␊ Message:␊ > 1 | const foo = Date(bar);␊ |...
Unlike the implementation and changes, they can easily find by checking commit history. The proposal link can only find by search (diffcult since rule names changes during time), or linked...
- [`eslint-plugin/require-meta-schema-description` rule](https://github.com/eslint-community/eslint-plugin-eslint-plugin/blob/main/docs/rules/require-meta-schema-description.md) - [PR in typescript-eslint](https://github.com/typescript-eslint/typescript-eslint/pull/11647)
### Description It seems typescript doesn't allow ```ts type A = import("foo", {}) ``` But allows ```ts type A = import("foo", {with: {}}) ``` I didn't add support for it...
### Description > Note that it's a good idea to call `toArray()` as a last step of your processing. For example, `fibonacci().take(10).toArray().filter(...)` is less efficient, because iterator helpers are lazy...
### Description They are hard to read and confusing. ### Examples ```js // ❌ array.splice(-1, 1, element); array.splice(array.length - 1, 1, element); // This can be ignored since `unicorn/prefer-negative-index` already...
### Description I wasn't aware that `BigInt('-1')` and `BigInt('+1')` is also valid. ### Examples ```js // ❌ BigInt('-1') // ✅ -1n ``` ```js // ❌ BigInt(-1) // ✅ -1n ```...
Preserve comments inside the argument.