ui: enforce alphabetical enum member ordering (#27272)

This commit is contained in:
Aleksander Grygier
2026-08-17 23:52:00 +02:00
committed by GitHub
parent 0021a77de0
commit 01818e4956
17 changed files with 246 additions and 243 deletions
+3 -3
View File
@@ -50,10 +50,10 @@ const FAVICON_PATH = '/favicon.ico';
// (and that callers read off `SearchResult`), so `FieldKey.TITLE` is a
// drop-in for the literal `'title'`.
enum FieldKey {
TITLE = 'title',
URL = 'url',
AUTHOR = 'author',
PUBLISHED = 'published',
AUTHOR = 'author'
TITLE = 'title',
URL = 'url'
}
const FIELD_PREFIXES: ReadonlyArray<{ key: FieldKey; prefix: string }> = [
{ key: FieldKey.TITLE, prefix: 'Title:' },