mirror of
https://github.com/signalapp/Signal-Desktop.git
synced 2025-12-20 02:08:57 +00:00
Normalize i18n() calls to prepare for ICU migration
This commit is contained in:
10
.eslintrc.js
10
.eslintrc.js
@@ -213,6 +213,16 @@ const typescriptRules = {
|
||||
|
||||
'@typescript-eslint/consistent-type-imports': 'error',
|
||||
|
||||
// Future: Maybe switch to never and always use `satisfies`
|
||||
'@typescript-eslint/consistent-type-assertions': [
|
||||
'error',
|
||||
{
|
||||
assertionStyle: 'as',
|
||||
// Future: Maybe switch to allow-as-parameter or never
|
||||
objectLiteralTypeAssertions: 'allow',
|
||||
},
|
||||
],
|
||||
|
||||
// Already enforced by TypeScript
|
||||
'consistent-return': 'off',
|
||||
|
||||
|
||||
Reference in New Issue
Block a user