Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ indent_style = "space"
indent_size = 4
max_line_length = 88

[*.{yml,yaml,html,js}]
[*.{yml,yaml,html,js,ts}]
indent_size = 2
max_line_length = 120
10 changes: 10 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,16 @@ repos:
additional_dependencies:
- prettier
- prettier-plugin-go-template
- repo: local
hooks:
# js.Build only strips the types, so nothing else would catch a type error.
- id: tsc
name: typecheck
entry: tsc --noEmit
language: node

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this works on pre-commit.ci

additional_dependencies: [typescript@7]
files: \.ts$|^tsconfig\.json$
pass_filenames: false
- repo: https://github.com/ericmjl/webp-pre-commit
rev: v0.0.12
hooks:
Expand Down
1 change: 0 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
/static/**
!/static/main.js
*.md
3 changes: 3 additions & 0 deletions assets/env.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
// Not on disk: resolved at runtime by the importmap in layouts/partials/head.html.
// Untyped on purpose — the import is only there for bootstrap’s side effects.
declare module "bootstrap"
Loading