Open peter-sanderson opened 1 week ago
To simplify a code, it would be nice to have arrow function where possible.
There is a ESLint rule for it: https://eslint.org/docs/latest/rules/arrow-body-style
Draft implementation: https://github.com/trezor/trezor-suite/pull/13074/files
We are using Typescript function overloads that do not work with arrow functions and I'm afraid that this rule would complain about all of them...
To simplify a code, it would be nice to have arrow function where possible.
There is a ESLint rule for it: https://eslint.org/docs/latest/rules/arrow-body-style
Draft implementation: https://github.com/trezor/trezor-suite/pull/13074/files