Skip to content

Commit

Permalink
Add tsc step
Browse files Browse the repository at this point in the history
  • Loading branch information
aeharding committed Nov 23, 2024
1 parent bcf0f33 commit 64efaef
Show file tree
Hide file tree
Showing 6 changed files with 102 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ jobs:
- name: 📝 Prettier formatting
run: pnpm lint:formatting

- name: 📝 Generate CSS types
run: pnpm test:generatecsstypes

- name: 💪 Type check
run: pnpm test:typecheck

Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ fly.toml
/playwright-report/
/blob-report/
/playwright/.cache/

*.css.d.ts
1 change: 0 additions & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
"recommendations": [
"ionic.ionic",
"esbenp.prettier-vscode",
"styled-components.vscode-styled-components", // TODO remove
"github.vscode-github-actions",
"clinyong.vscode-css-modules"
]
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"preview": "vite preview",
"test": "vitest",
"test:e2e": "playwright test",
"test:generatecsstypes": "tcm src",
"test:typecheck": "tsc",
"lint": "eslint src --max-warnings=0",
"lint:formatting": "prettier --check .",
Expand Down Expand Up @@ -148,6 +149,7 @@
"prettier": "^3.3.3",
"pwa-asset-generator": "^6.4.0",
"release-it": "^17.10.0",
"typed-css-modules": "^0.9.1",
"typescript": "^5.6.3",
"typescript-eslint": "^8.14.0",
"vite": "^5.4.11",
Expand Down
94 changes: 94 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/features/inbox/InboxItem.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ export default function InboxItem({ item }: InboxItemProps) {
<VoteArrow vote={vote} />
</div>
<div className={styles.content}>
<div className={styles.header}>{renderHeader()}</div>
<div>{renderHeader()}</div>
<div className={styles.body}>
<CommentMarkdown id={getItemId(item)}>
{renderContents()}
Expand Down

0 comments on commit 64efaef

Please sign in to comment.