From 246ce37693073b3b9b2093b4cf6f34dcd6ebd137 Mon Sep 17 00:00:00 2001 From: Philipp Kief Date: Wed, 13 Nov 2024 15:06:16 +0100 Subject: [PATCH] fix(workflows): ensure similar formatting with pipeline (#2705) --- biome.jsonc | 3 ++ package.json | 39 +++++----------------- renovate.json | 5 +-- src/core/generator/folderGenerator.ts | 8 +---- src/core/i18n/translations/lang-id.ts | 48 +++++++++++++-------------- src/core/icons/fileIcons.ts | 2 +- src/core/icons/folderIcons.ts | 2 +- 7 files changed, 39 insertions(+), 68 deletions(-) diff --git a/biome.jsonc b/biome.jsonc index 715f9a0cec..56d96242df 100644 --- a/biome.jsonc +++ b/biome.jsonc @@ -9,6 +9,9 @@ "lineWidth": 80, "attributePosition": "auto" }, + "files": { + "ignore": ["dist", "node_modules", "package.json", "bun.lockb"] + }, "organizeImports": { "enabled": true }, "linter": { "enabled": true, diff --git a/package.json b/package.json index 6f6633d5ba..807896dfa9 100644 --- a/package.json +++ b/package.json @@ -17,7 +17,7 @@ "contributors": "bun ./src/scripts/contributors/contributors.ts", "generateJson": "bun ./src/scripts/icons/generateJson.ts > ./dist/material-icons.json", "generateClones": "bun ./src/scripts/icons/generateClones.ts", - "lint": "biome check --write ./src", + "lint": "biome check", "format": "biome format --write ./src", "preversion": "bun run contributors && bun run preview && bun run svgo && git add images/*.png icons/*.svg", "preview": "bun ./src/scripts/preview/run.ts", @@ -54,29 +54,16 @@ "color": "#1e1e1e", "theme": "dark" }, - "categories": [ - "Themes" - ], - "keywords": [ - "icons", - "theme", - "material", - "icon-theme", - "customization" - ], - "extensionKind": [ - "ui", - "workspace" - ], + "categories": ["Themes"], + "keywords": ["icons", "theme", "material", "icon-theme", "customization"], + "extensionKind": ["ui", "workspace"], "capabilities": { "untrustedWorkspaces": { "supported": true }, "virtualWorkspaces": true }, - "activationEvents": [ - "onStartupFinished" - ], + "activationEvents": ["onStartupFinished"], "main": "./dist/extension/desktop/extension.cjs", "browser": "./dist/extension/web/extension.cjs", "module": "./dist/module/index.cjs", @@ -231,9 +218,7 @@ }, "activeForPacks": { "type": "array", - "default": [ - "angular" - ], + "default": ["angular"], "description": "%configuration.customClones.activeForPacks%", "items": { "type": "string", @@ -308,11 +293,7 @@ "%configuration.folders.theme.classic%", "%configuration.folders.theme.none%" ], - "enum": [ - "specific", - "classic", - "none" - ] + "enum": ["specific", "classic", "none"] }, "material-icon-theme.folders.color": { "type": "string", @@ -353,11 +334,7 @@ "material-icon-theme.logLevel": { "type": "string", "default": "info", - "enum": [ - "info", - "error", - "debug" - ], + "enum": ["info", "error", "debug"], "description": "%configuration.logLevel%" } } diff --git a/renovate.json b/renovate.json index c1c0f68e2a..a784cf8bbe 100644 --- a/renovate.json +++ b/renovate.json @@ -1,9 +1,6 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "config:base", - "helpers:pinGitHubActionDigests" - ], + "extends": ["config:base", "helpers:pinGitHubActionDigests"], "ignoreDeps": ["@types/vscode"], "packageRules": [ { diff --git a/src/core/generator/folderGenerator.ts b/src/core/generator/folderGenerator.ts index cc8c5ae00a..58192b9097 100644 --- a/src/core/generator/folderGenerator.ts +++ b/src/core/generator/folderGenerator.ts @@ -191,13 +191,7 @@ const setIconDefinitions = ( ) => { const isClone = (icon as FolderIcon).clone !== undefined; - manifest = createIconDefinitions( - manifest, - config, - icon.name, - '', - isClone - ); + manifest = createIconDefinitions(manifest, config, icon.name, '', isClone); if (icon.light) { manifest = merge( diff --git a/src/core/i18n/translations/lang-id.ts b/src/core/i18n/translations/lang-id.ts index f411072e9f..78b2090289 100644 --- a/src/core/i18n/translations/lang-id.ts +++ b/src/core/i18n/translations/lang-id.ts @@ -1,45 +1,45 @@ import type { Translation } from '../../models/i18n/translation'; export const translation: Translation = { - activate: "Aktifkan", - activated: "Tema Ikon Material aktif.", + activate: 'Aktifkan', + activated: 'Tema Ikon Material aktif.', iconPacks: { - selectPack: "Pilih paket ikon", + selectPack: 'Pilih paket ikon', description: "Pilih paket ikon '%0'", - disabled: "Nonaktifkan paket ikon" + disabled: 'Nonaktifkan paket ikon', }, folders: { - toggleIcons: "Pilih tema folder", - disabled: "Tidak ada ikon folder", + toggleIcons: 'Pilih tema folder', + disabled: 'Tidak ada ikon folder', theme: { - description: "Pilih tema folder '%0'" - } + description: "Pilih tema folder '%0'", + }, }, colorSelect: { - color: "Pilih warna", - hexCode: "Masukkan kode warna HEX", - wrongHexCode: "Kode warna HEX tidak valid!" + color: 'Pilih warna', + hexCode: 'Masukkan kode warna HEX', + wrongHexCode: 'Kode warna HEX tidak valid!', }, opacity: { - inputPlaceholder: "Nilai opasitas (antara 0 dan 1)", - wrongValue: "Silakan masukkan angka desimal antara 0 dan 1." + inputPlaceholder: 'Nilai opasitas (antara 0 dan 1)', + wrongValue: 'Silakan masukkan angka desimal antara 0 dan 1.', }, toggleSwitch: { - on: "AKTIF", - off: "NONAKTIF" + on: 'AKTIF', + off: 'NONAKTIF', }, explorerArrows: { - toggle: "Alihkan panah folder di Explorer", - enable: "Tampilkan panah folder di Explorer", - disable: "Sembunyikan panah folder di Explorer" + toggle: 'Alihkan panah folder di Explorer', + enable: 'Tampilkan panah folder di Explorer', + disable: 'Sembunyikan panah folder di Explorer', }, grayscale: { - toggle: "Alihkan ikon grayscale", - enable: "Aktifkan ikon grayscale", - disable: "Nonaktifkan ikon grayscale" + toggle: 'Alihkan ikon grayscale', + enable: 'Aktifkan ikon grayscale', + disable: 'Nonaktifkan ikon grayscale', }, saturation: { - inputPlaceholder: "Nilai saturasi (antara 0 dan 1)", - wrongValue: "Silakan masukkan angka desimal antara 0 dan 1." - } + inputPlaceholder: 'Nilai saturasi (antara 0 dan 1)', + wrongValue: 'Silakan masukkan angka desimal antara 0 dan 1.', + }, }; diff --git a/src/core/icons/fileIcons.ts b/src/core/icons/fileIcons.ts index e4bb8a3df0..8624b2e41e 100644 --- a/src/core/icons/fileIcons.ts +++ b/src/core/icons/fileIcons.ts @@ -2879,7 +2879,7 @@ export const fileIcons: FileIcons = { { name: 'umi', patterns: { - ".umirc": FileNamePattern.Ecmascript, + '.umirc': FileNamePattern.Ecmascript, }, }, ]), diff --git a/src/core/icons/folderIcons.ts b/src/core/icons/folderIcons.ts index 8f898c45aa..26b830117d 100644 --- a/src/core/icons/folderIcons.ts +++ b/src/core/icons/folderIcons.ts @@ -86,7 +86,7 @@ export const folderIcons: FolderTheme[] = [ }, { name: 'folder-directive', - folderNames: ['directive, directives'] + folderNames: ['directive, directives'], }, { name: 'folder-jinja',