You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: silent @typescript-eslint/no-redundant-type-constituents + fix local linting issues (#437)
Partially reverting this PR:
- #407
It turns out, the CI was happy with those changes, but it was giving us
some other lint issues locally.
Still unsure what causes that (since it works fine on the CI). That
seems to be a false-positive, and since this directive is not a "strong
requirement" for increased type-safety, it's ok to disable it IMO.
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> Streamlines linting and removes prior workarounds.
>
> - Introduces `tsCommonRules` in `.eslintrc.js` to disable
`@typescript-eslint/no-redundant-type-constituents` and applies it
across multiple package overrides
> - Removes extra `@metamask/*` path entries from
`jest.config.packages.js` and `tsconfig.packages.json` used as a
workaround
> - Adds a scoped ESLint disable for duplicate type constituents in
`packages/keyring-internal-api/src/types.ts`
> - Refactors small test helpers in Ledger/Trezor keyring tests to use
safer array access patterns
>
> <sup>Written by [Cursor
Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit
056615a. This will update automatically
on new commits. Configure
[here](https://cursor.com/dashboard?tab=bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
Copy file name to clipboardExpand all lines: tsconfig.packages.json
+1-5Lines changed: 1 addition & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -28,11 +28,7 @@
28
28
* `jest.config.packages.js`.
29
29
*/
30
30
"paths": {
31
-
"@metamask/*": [
32
-
"../*/src",
33
-
// While still unclear why, adding "./packages/*/src" seems to fix the @typescript-eslint/no-redundant-type-constituents errors throughout the monorepo
0 commit comments