Skip to content

Commit 2be12ce

Browse files
style: apply prettier formatting to codebase
1 parent f349b65 commit 2be12ce

75 files changed

Lines changed: 1479 additions & 830 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.dockerignore

Lines changed: 48 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,49 @@
1-
node_modules
2-
dist
3-
.git
4-
.github
5-
coverage
6-
docs
7-
src/__tests__
8-
vitest.config.ts
9-
*.md
1+
# Dependencies
2+
node_modules/
3+
4+
# Build outputs (we rebuild in Docker)
5+
dist/
6+
build/
7+
8+
# Git
9+
.git/
10+
.gitignore
11+
12+
# IDE / Editors
13+
.vscode/
14+
.idea/
15+
*.swp
16+
*.swo
17+
18+
# Testing
19+
coverage/
20+
.nyc_output/
21+
src/__tests__/
22+
23+
# Environment variables (use Docker secrets instead)
24+
.env
25+
.env.local
26+
.env*.local
27+
28+
# Logs
1029
*.log
30+
npm-debug.log*
31+
32+
# OS files
33+
.DS_Store
34+
Thumbs.db
35+
36+
# Documentation
37+
docs/
38+
*.md
39+
!README.md
40+
41+
# Development config files
42+
.prettierrc
43+
.prettierignore
44+
.eslintrc*
45+
eslint.config.*
46+
vitest.config.*
47+
48+
# GitHub
49+
.github/

.github/workflows/docker-hub.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,4 +64,4 @@ jobs:
6464
password: ${{ secrets.DOCKERHUB_TOKEN }}
6565
repository: nightslayer/leetcode-cli
6666
readme-filepath: ./docs/docker.md
67-
short-description: "🔥 A modern LeetCode CLI built with TypeScript"
67+
short-description: '🔥 A modern LeetCode CLI built with TypeScript'

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
}
2929
p
3030
' docs/releases.md > release_notes.md
31-
31+
3232
if [ ! -s release_notes.md ]; then
3333
echo "Release $VERSION" > release_notes.md
3434
fi

.gitignore

Lines changed: 40 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,54 @@
11
# Dependencies
22
node_modules/
33

4-
# Build output
4+
# Build outputs
55
dist/
6+
build/
7+
*.tsbuildinfo
68

7-
# IDE
8-
.idea/
9-
.vscode/
10-
*.swp
11-
*.swo
12-
.DS_Store
9+
# Environment variables
10+
.env
11+
.env.local
12+
.env*.local
1313

1414
# Logs
15+
logs/
1516
*.log
1617
npm-debug.log*
18+
yarn-debug.log*
19+
yarn-error.log*
1720

18-
# Environment
19-
.env
20-
.env.local
21-
22-
# Test coverage
21+
# Testing
2322
coverage/
23+
.nyc_output/
2424

2525
# OS files
26+
.DS_Store
2627
Thumbs.db
28+
Desktop.ini
29+
30+
# IDE / Editors
31+
.vscode/*
32+
!.vscode/settings.json
33+
!.vscode/extensions.json
34+
.idea/
35+
*.swp
36+
*.swo
37+
*~
38+
*.sublime-workspace
39+
*.sublime-project
40+
41+
# Temporary files
42+
*.tmp
43+
*.temp
44+
.cache/
45+
46+
# Package manager locks (keep package-lock.json, ignore others)
47+
yarn.lock
48+
pnpm-lock.yaml
49+
50+
# Debug
51+
.node_repl_history
52+
*.pid
53+
*.seed
54+
*.pid.lock

.prettierignore

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Build outputs
2+
dist/
3+
build/
4+
*.tsbuildinfo
5+
6+
# Dependencies
7+
node_modules/
8+
package-lock.json
9+
10+
# Coverage
11+
coverage/
12+
.nyc_output/
13+
14+
# Logs
15+
*.log
16+
17+
# OS files
18+
.DS_Store
19+
Thumbs.db
20+
21+
# Auto-generated files
22+
*.min.js
23+
*.min.css
24+
25+
# License (preserve original formatting)
26+
LICENSE

.prettierrc

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

0 commit comments

Comments
 (0)