fisker Cheung
fisker Cheung
> Should we follow prettier's version strategy? My opinion is to drop EOL version, `>=20`. > migrate to ESM as primary dual package I prefer ESM only.
> When will prettier do that? We don't know yet, but I don't think it's necessary to align with Prettier.
I use `avoid` too, but Sindre prefer `alway` https://github.com/sindresorhus/eslint-plugin-unicorn/pull/1709#issuecomment-1030263041
> but the affected haven't changed in years. I'm not sure how the parser changed, but the typescript parser is super forgiving, it allow many kind of invalid syntax, it's...
Ah, I believe the parser correctly treat it as module now, it enbles strict mode, which also request by me.. https://github.com/typescript-eslint/typescript-eslint/issues/9101
This seems to happen due to my internet connection? Not sure..
https://github.com/angular/angular/pull/60169
```js array.toReversed().find(logic); array.toReversed().findIndex(logic); array.toReversed().indexOf(logic); array.toReversed().reduce(logic); ```
@jamesgeorge007 https://github.com/sindresorhus/eslint-plugin-unicorn/blob/master/docs/new-rule.md#creating-a-new-rule
This function [`flatLogicalExpression`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/d53d935951aa815c763fc9441aa452c763294715/rules/no-useless-length-check.js#L35) and [`getCommonReferences`](https://github.com/sindresorhus/eslint-plugin-unicorn/blob/d53d935951aa815c763fc9441aa452c763294715/rules/prefer-switch.js#L34) can be useful for this rule.