diff --git a/.prettierignore b/.prettierignore new file mode 100644 index 0000000..9a7cc76 --- /dev/null +++ b/.prettierignore @@ -0,0 +1,2 @@ +CHANGELOG.md +pnpm-lock.yaml diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..e69de29 diff --git a/demo/index.html b/demo/index.html index 5dc4fc7..0297909 100644 --- a/demo/index.html +++ b/demo/index.html @@ -1,4 +1,4 @@ - +
diff --git a/package.json b/package.json index a700725..775ce8f 100644 --- a/package.json +++ b/package.json @@ -31,7 +31,8 @@ "scripts": { "prepare": "pnpm run build", "build": "cm-buildhelper src/catppuccin.ts", - "watch": "nodemon --watch src -e ts --exec 'pnpm build'" + "watch": "nodemon --watch src -e ts --exec 'pnpm build'", + "format": "prettier --write ." }, "files": [ "dist" @@ -52,7 +53,8 @@ }, "devDependencies": { "@codemirror/buildhelper": "^1.0.0", - "nodemon": "^3.1.14" + "nodemon": "^3.1.14", + "prettier": "3.8.1" }, "packageManager": "pnpm@10.33.0" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index be9e0e3..327f3f1 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -30,6 +30,9 @@ importers: nodemon: specifier: ^3.1.14 version: 3.1.14 + prettier: + specifier: 3.8.1 + version: 3.8.1 packages: @@ -557,6 +560,11 @@ packages: resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==} engines: {node: '>=8.6'} + prettier@3.8.1: + resolution: {integrity: sha512-UOnG6LftzbdaHZcKoPFtOcCKztrQ57WkHDeRD9t/PTQtmT0NHSeWWepj6pS0z/N7+08BHFDQVUrfmfMRcZwbMg==} + engines: {node: '>=14'} + hasBin: true + process-nextick-args@2.0.1: resolution: {integrity: sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==} @@ -1222,6 +1230,8 @@ snapshots: picomatch@2.3.1: {} + prettier@3.8.1: {} + process-nextick-args@2.0.1: {} pstree.remy@1.1.8: {} diff --git a/renovate.json b/renovate.json index a222000..b667acb 100644 --- a/renovate.json +++ b/renovate.json @@ -1,6 +1,4 @@ { "$schema": "https://docs.renovatebot.com/renovate-schema.json", - "extends": [ - "local>catppuccin/renovate-config" - ] + "extends": ["local>catppuccin/renovate-config"] } diff --git a/src/catppuccin.ts b/src/catppuccin.ts index 797886a..1df89ca 100644 --- a/src/catppuccin.ts +++ b/src/catppuccin.ts @@ -92,19 +92,13 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) { }, }, }, - { dark: isDark } + { dark: isDark }, ); const highlightStyle = HighlightStyle.define([ { tag: t.keyword, color: colors.mauve.hex }, { - tag: [ - t.name, - t.definition(t.name), - t.deleted, - t.character, - t.macroName, - ], + tag: [t.name, t.definition(t.name), t.deleted, t.character, t.macroName], color: colors.text.hex, }, { @@ -155,9 +149,9 @@ function createCatppuccinTheme(flavor: CatppuccinFlavor) { // Create extensions for all variants export const catppuccinLatte: Extension = createCatppuccinTheme(flavors.latte); export const catppuccinFrappe: Extension = createCatppuccinTheme( - flavors.frappe + flavors.frappe, ); export const catppuccinMacchiato: Extension = createCatppuccinTheme( - flavors.macchiato + flavors.macchiato, ); export const catppuccinMocha: Extension = createCatppuccinTheme(flavors.mocha);