Skip to content

Commit

Permalink
Improve prettier (#24)
Browse files Browse the repository at this point in the history
* Add recommended extensions

* Add CI check

* Configure husky and lint-staged to run prettier
  • Loading branch information
felixmokross authored Feb 24, 2024
1 parent 3e4730f commit 2d16d38
Show file tree
Hide file tree
Showing 5 changed files with 678 additions and 10 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,17 @@ jobs:
- uses: bahmutov/npm-install@v1
- run: npm run lint -- --max-warnings=0

format:
name: Prettier
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_VERSION }}
- uses: bahmutov/npm-install@v1
- run: npx prettier --check

typecheck:
name: Typecheck
runs-on: ubuntu-latest
Expand Down
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp

// List of extensions which should be recommended for users of this workspace.
"recommendations": [
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint",
"Prisma.prisma",
"bradlc.vscode-tailwindcss"
],
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
"unwantedRecommendations": []
}
Loading

0 comments on commit 2d16d38

Please # to comment.