Skip to content

Commit 3762283

Browse files
committed
🎨 Format configuration files with Prettier
Apply consistent formatting to workflow, pre-commit, and theme files - Add .prettierrc.json with standardized formatting rules - Update pre-commit config to include Prettier for JSON and YAML files - Format GitHub workflow files to use double quotes and consistent array/object styling - Format all VSCode theme files to use compact array notation and consistent object formatting - Format Alacritty and Warp configuration files with standardized YAML formatting and comment alignment Ensures consistent code style across all configuration files while maintaining functionality.
1 parent 2d11c4d commit 3762283

File tree

10 files changed

+234
-596
lines changed

10 files changed

+234
-596
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main, develop ]
5+
branches: [main, develop]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
jobs:
1010
# → Core linting using make lint
@@ -104,8 +104,8 @@ jobs:
104104
continue-on-error: true
105105
id: link-check
106106
with:
107-
use-verbose-mode: 'yes'
108-
config-file: '.github/markdown-link-check.json'
107+
use-verbose-mode: "yes"
108+
config-file: ".github/markdown-link-check.json"
109109

110110
- name: → Report link check results
111111
if: steps.link-check.outcome == 'failure'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*'
6+
- "v*"
77

88
permissions:
99
contents: write

.pre-commit-config.yaml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ repos:
66
entry: stylua
77
language: system
88
types: [lua]
9-
args: ['--verify']
9+
args: ["--verify"]
1010

1111
- id: selene
1212
name: Selene Lint
1313
entry: selene
1414
language: system
1515
types: [lua]
1616
pass_filenames: false
17-
args: ['lua/']
17+
args: ["lua/"]
1818

1919
- repo: https://github.com/pre-commit/pre-commit-hooks
2020
rev: v4.5.0
@@ -26,10 +26,17 @@ repos:
2626
- id: check-toml
2727
- id: check-merge-conflict
2828
- id: mixed-line-ending
29-
args: ['--fix=lf']
29+
args: ["--fix=lf"]
3030

3131
- repo: https://github.com/igorshubovych/markdownlint-cli
3232
rev: v0.38.0
3333
hooks:
3434
- id: markdownlint
35-
args: ['--fix']
35+
args: ["--fix"]
36+
37+
- repo: https://github.com/pre-commit/mirrors-prettier
38+
rev: v3.1.0
39+
hooks:
40+
- id: prettier
41+
types_or: [json, yaml]
42+
args: ["--write"]

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"printWidth": 100,
3+
"tabWidth": 2,
4+
"useTabs": false,
5+
"semi": false,
6+
"singleQuote": false,
7+
"trailingComma": "none",
8+
"bracketSpacing": true,
9+
"arrowParens": "avoid",
10+
"endOfLine": "lf"
11+
}

extras/alacritty.yml

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -4,41 +4,41 @@
44

55
colors:
66
primary:
7-
background: '#0a0a0f'
8-
foreground: '#e0e0e0'
7+
background: "#0a0a0f"
8+
foreground: "#e0e0e0"
99

1010
cursor:
11-
text: '#0a0a0f'
12-
cursor: '#e135ff'
11+
text: "#0a0a0f"
12+
cursor: "#e135ff"
1313

1414
selection:
15-
text: '#e0e0e0'
16-
background: '#44475a'
15+
text: "#e0e0e0"
16+
background: "#44475a"
1717

1818
normal:
19-
black: '#0a0a0f'
20-
red: '#ff79c6'
21-
green: '#50fa7b'
22-
yellow: '#f1fa8c'
23-
blue: '#bd93f9'
24-
magenta: '#e135ff'
25-
cyan: '#80ffea'
26-
white: '#e0e0e0'
19+
black: "#0a0a0f"
20+
red: "#ff79c6"
21+
green: "#50fa7b"
22+
yellow: "#f1fa8c"
23+
blue: "#bd93f9"
24+
magenta: "#e135ff"
25+
cyan: "#80ffea"
26+
white: "#e0e0e0"
2727

2828
bright:
29-
black: '#6272a4'
30-
red: '#ff5555'
31-
green: '#50fa7b'
32-
yellow: '#f1fa8c'
33-
blue: '#bd93f9'
34-
magenta: '#ff79c6'
35-
cyan: '#5fffff'
36-
white: '#ffffff'
29+
black: "#6272a4"
30+
red: "#ff5555"
31+
green: "#50fa7b"
32+
yellow: "#f1fa8c"
33+
blue: "#bd93f9"
34+
magenta: "#ff79c6"
35+
cyan: "#5fffff"
36+
white: "#ffffff"
3737

3838
indexed_colors:
39-
- { index: 16, color: '#ffb86c' } # Orange
40-
- { index: 17, color: '#f78c6c' } # Coral
41-
- { index: 18, color: '#14141a' } # bg_highlight
42-
- { index: 19, color: '#6272a4' } # Purple-blue
43-
- { index: 20, color: '#80ffea' } # Neon cyan
44-
- { index: 21, color: '#ff79c6' } # Pink
39+
- { index: 16, color: "#ffb86c" } # Orange
40+
- { index: 17, color: "#f78c6c" } # Coral
41+
- { index: 18, color: "#14141a" } # bg_highlight
42+
- { index: 19, color: "#6272a4" } # Purple-blue
43+
- { index: 20, color: "#80ffea" } # Neon cyan
44+
- { index: 21, color: "#ff79c6" } # Pink

0 commit comments

Comments
 (0)