@@ -58,6 +58,10 @@ module.exports = {
5858 rules : {
5959 // Enable rules that are disabled in `@metamask/eslint-config-typescript`
6060 '@typescript-eslint/no-explicit-any' : 'error' ,
61+
62+ // This rule triggers false positives and doesn't add real type-safety value.
63+ // See: https://typescript-eslint.io/rules/no-redundant-type-constituents/#when-not-to-use-it
64+ '@typescript-eslint/no-redundant-type-constituents' : 'off' ,
6165 } ,
6266 } ,
6367 {
@@ -97,6 +101,10 @@ module.exports = {
97101 // works on the original repository, so there might be some side-effects now that
98102 // we are building in a monorepo)
99103 '@typescript-eslint/restrict-template-expressions' : 'off' ,
104+
105+ // This rule triggers false positives and doesn't add real type-safety value.
106+ // See: https://typescript-eslint.io/rules/no-redundant-type-constituents/#when-not-to-use-it
107+ '@typescript-eslint/no-redundant-type-constituents' : 'off' ,
100108 } ,
101109 } ,
102110 // @metamask /keyring-eth-hd
@@ -175,6 +183,10 @@ module.exports = {
175183 'jsdoc/tag-lines' : 'off' ,
176184 'n/no-callback-literal' : 'off' ,
177185 'promise/no-multiple-resolved' : 'off' ,
186+
187+ // This rule triggers false positives and doesn't add real type-safety value.
188+ // See: https://typescript-eslint.io/rules/no-redundant-type-constituents/#when-not-to-use-it
189+ '@typescript-eslint/no-redundant-type-constituents' : 'off' ,
178190 } ,
179191 } ,
180192 // @metamask /keyring-snap-bridge
@@ -189,6 +201,10 @@ module.exports = {
189201 // works on the original repository, so there might be some side-effects now that
190202 // we are building in a monorepo)
191203 '@typescript-eslint/restrict-template-expressions' : 'off' ,
204+
205+ // This rule triggers false positives and doesn't add real type-safety value.
206+ // See: https://typescript-eslint.io/rules/no-redundant-type-constituents/#when-not-to-use-it
207+ '@typescript-eslint/no-redundant-type-constituents' : 'off' ,
192208 } ,
193209 } ,
194210 // @metamask /keyring-snap-sdk
@@ -215,6 +231,10 @@ module.exports = {
215231 // works on the original repository, so there might be some side-effects now that
216232 // we are building in a monorepo)
217233 '@typescript-eslint/restrict-template-expressions' : 'off' ,
234+
235+ // This rule triggers false positives and doesn't add real type-safety value.
236+ // See: https://typescript-eslint.io/rules/no-redundant-type-constituents/#when-not-to-use-it
237+ '@typescript-eslint/no-redundant-type-constituents' : 'off' ,
218238 } ,
219239 } ,
220240 ] ,
0 commit comments