feat: prettier

This commit is contained in:
Tomasz Stefaniak 2025-08-08 12:58:23 -07:00
parent 686d106fb8
commit 33eaa6df4a
4 changed files with 54 additions and 0 deletions

View file

@ -46,6 +46,9 @@ jobs:
- name: Run linting
run: npm run lint
- name: Check code formatting
run: npm run format:check
review:
uses: ./.github/workflows/continue-review.yaml
secrets:

40
.prettierignore Normal file
View file

@ -0,0 +1,40 @@
# Dependencies
node_modules/
# Build output
dist/
# Coverage
coverage/
# Logs
*.log
logs/
# OS files
.DS_Store
Thumbs.db
# IDE files
.vscode/
.idea/
*.swp
*.swo
# Lock files
package-lock.json
yarn.lock
pnpm-lock.yaml
# Test files
*.test.ts
*.test.tsx
*.spec.ts
*.spec.tsx
# Config files that don't need formatting
.prettierrc
.prettierignore
# Generated files
*.generated.*

8
.prettierrc Normal file
View file

@ -0,0 +1,8 @@
{
"tabWidth": 2,
"useTabs": false,
"trailingComma": "all",
"semi": true,
"singleQuote": false,
"bracketSpacing": true
}

View file

@ -19,6 +19,8 @@
"repomix:cli": "npx repomix --ignore sdk-repomix.xml -o cli-repomix.xml",
"lint": "tsc --noEmit && eslint .",
"lint:fix": "eslint . --fix",
"format": "prettier --write .",
"format:check": "prettier --check .",
"typecheck": "tsc --noEmit",
"watch:logs": "tail -f ~/.continue/logs/cn.log",
"prepare": "npm run build",
@ -105,6 +107,7 @@
"happy-dom": "^18.0.1",
"ink-testing-library": "^4.0.0",
"nock": "^14.0.5",
"prettier": "^3.6.2",
"semantic-release": "^24.2.7",
"supertest": "^7.1.3",
"ts-node": "^10.9.2",