Skip to content

Commit 5166399

Browse files
committed
fix: lunaria lint, knip fixes
1 parent 80a213c commit 5166399

File tree

3 files changed

+10
-7
lines changed

3 files changed

+10
-7
lines changed

app/components/ProgressBar.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script setup lang="ts">
2-
export type CompletionColorScheme = {
2+
type CompletionColorScheme = {
33
low: number
44
medium: number
55
high: number

knip.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ const config: KnipConfig = {
4141
'h3-next',
4242
],
4343
ignoreUnresolved: ['#oauth/config'],
44-
ignoreFiles: ['app/components/Tooltip/Announce.vue', 'app/components/UserCombobox.vue'],
44+
ignoreFiles: [
45+
'app/components/Tooltip/Announce.vue',
46+
'app/components/UserCombobox.vue',
47+
'**/*.unused.*',
48+
],
4549
},
4650
'cli': {
4751
project: ['src/**/*.ts!', '!src/mock-*.ts'],

lunaria/components.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ const LocaleDetails = (status: I18nStatus, locale: Locale): string => {
140140
`
141141
}
142142

143-
export const MissingKeysList = (missingKeys: string[]): string => {
143+
const MissingKeysList = (missingKeys: string[]): string => {
144144
return html`<details>
145145
<summary>Show missing keys</summary>
146146
<ul>
@@ -159,7 +159,6 @@ const ContentDetailsLinks = (
159159
`
160160
}
161161

162-
163162
const ProgressBar = (percentComplete: number): string => {
164163
let barClass = 'completed'
165164

@@ -204,7 +203,7 @@ const TitleParagraph = html`
204203

205204
// Components from here are not used at the moment
206205
// Do not delete as we might use it if we split translations in multiple files for locale
207-
const StatusByFile = (
206+
const _StatusByFile = (
208207
config: LunariaConfig,
209208
status: LunariaStatus,
210209
lunaria: LunariaInstance,
@@ -301,14 +300,14 @@ const EmojiFileLink = (
301300
</span>`
302301
}
303302

304-
const CreateFileLink = (href: string, text: string): string => {
303+
const _CreateFileLink = (href: string, text: string): string => {
305304
return html`<a class="create-button" href="${href}">${text}</a>`
306305
}
307306

308307
/**
309308
* Build an SVG file showing a summary of each language's translation progress.
310309
*/
311-
const SvgSummary = (config: LunariaConfig, status: LunariaStatus): string => {
310+
const _SvgSummary = (config: LunariaConfig, status: LunariaStatus): string => {
312311
const localeHeight = 56 // Each locale’s summary is 56px high.
313312
const svgHeight = localeHeight * Math.ceil(config.locales.length / 2)
314313
return html`<svg

0 commit comments

Comments
 (0)