Merge pull request #19522 from overleaf/jpa-sort-get-meta

[web] sort getMeta type definitions and enforce sorting via eslint

GitOrigin-RevId: 5b50c4f77facb3f92072597933bdc1c1bf0ecd78
This commit is contained in:
Jakob Ackermann
2024-07-23 08:04:14 +00:00
committed by Copybot
parent cb8693db19
commit ed3641607c
2 changed files with 12 additions and 2 deletions
+10
View File
@@ -310,6 +310,16 @@ module.exports = {
],
},
},
{
// Sorting for Meta
files: ['frontend/js/utils/meta.ts'],
rules: {
'@typescript-eslint/member-ordering': [
'error',
{ interfaces: { order: 'alphabetically' } },
],
},
},
{
// React component specific rules
//
+2 -2
View File
@@ -190,10 +190,10 @@ export interface Meta {
'ol-tags': Tag[]
'ol-teamInvites': TeamInvite[]
'ol-thirdPartyIds': ThirdPartyIds
'ol-translationLoadErrorMessage': string
'ol-translationIoNotLoaded': string
'ol-translationUnableToJoin': string
'ol-translationLoadErrorMessage': string
'ol-translationMaintenance': string
'ol-translationUnableToJoin': string
'ol-useShareJsHash': boolean
'ol-user': User
'ol-userAffiliations': Affiliation[]