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-22 11:54:27 +02:00 committed by Copybot
parent 6cb956b1ff
commit a099f82c34
2 changed files with 12 additions and 2 deletions

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
//

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[]