Open mrmckeb opened 2 months ago
The new strict rules are very restrictive, requiring numbers to be stringified. This might make sense in UIs, but for things logs this is probably too much.
For example, the following is currently an error:
console.log(`Counted ${number} users`);
We could loosen this to allow the following:
const options: Options = [ { allowAny: false, allowNullish: false, allowNever: false, // Considered low risk. allowBoolean: true, allowNumber: true, allowRegExp: true, }, ];
For more, see: https://typescript-eslint.io/rules/restrict-template-expressions/
The new strict rules are very restrictive, requiring numbers to be stringified. This might make sense in UIs, but for things logs this is probably too much.
For example, the following is currently an error:
We could loosen this to allow the following:
For more, see: https://typescript-eslint.io/rules/restrict-template-expressions/