Skip to content

Commit c45897a

Browse files
committed
fix: lint, i18n schema
1 parent 7353481 commit c45897a

File tree

2 files changed

+76
-1
lines changed

2 files changed

+76
-1
lines changed

app/components/Package/QualityScore.vue

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,13 @@ const checkLabels: Record<string, string> = {
2525
}
2626
2727
const categories = computed(() => {
28-
const order: ScoreCategory[] = ['documentation', 'maintenance', 'types', 'bestPractices', 'security']
28+
const order: ScoreCategory[] = [
29+
'documentation',
30+
'maintenance',
31+
'types',
32+
'bestPractices',
33+
'security',
34+
]
2935
return order.map(cat => ({
3036
key: cat,
3137
label: categoryLabels[cat],

i18n/schema.json

Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,6 +1093,75 @@
10931093
},
10941094
"additionalProperties": false
10951095
},
1096+
"score": {
1097+
"type": "object",
1098+
"properties": {
1099+
"title": {
1100+
"type": "string"
1101+
},
1102+
"subtitle": {
1103+
"type": "string"
1104+
},
1105+
"categories": {
1106+
"type": "object",
1107+
"properties": {
1108+
"documentation": {
1109+
"type": "string"
1110+
},
1111+
"maintenance": {
1112+
"type": "string"
1113+
},
1114+
"types": {
1115+
"type": "string"
1116+
},
1117+
"bestPractices": {
1118+
"type": "string"
1119+
},
1120+
"security": {
1121+
"type": "string"
1122+
}
1123+
},
1124+
"additionalProperties": false
1125+
},
1126+
"checks": {
1127+
"type": "object",
1128+
"properties": {
1129+
"has-readme": {
1130+
"type": "string"
1131+
},
1132+
"has-description": {
1133+
"type": "string"
1134+
},
1135+
"update-frequency": {
1136+
"type": "string"
1137+
},
1138+
"has-types": {
1139+
"type": "string"
1140+
},
1141+
"has-license": {
1142+
"type": "string"
1143+
},
1144+
"has-repository": {
1145+
"type": "string"
1146+
},
1147+
"has-provenance": {
1148+
"type": "string"
1149+
},
1150+
"has-esm": {
1151+
"type": "string"
1152+
},
1153+
"no-vulnerabilities": {
1154+
"type": "string"
1155+
},
1156+
"not-deprecated": {
1157+
"type": "string"
1158+
}
1159+
},
1160+
"additionalProperties": false
1161+
}
1162+
},
1163+
"additionalProperties": false
1164+
},
10961165
"keywords_title": {
10971166
"type": "string"
10981167
},

0 commit comments

Comments
 (0)