Skip to content

Commit 6e26f23

Browse files
authored
feat: Initial cleanups (#2)
Pushed a non-empty main so this the first proper PR 😅 --------- Co-authored-by: Henning Muszynski <henningmu@users.noreply.github.com>
1 parent 060d9d2 commit 6e26f23

File tree

16 files changed

+2093
-1866
lines changed

16 files changed

+2093
-1866
lines changed

.github/release-please-config.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3-
"packages": {
4-
".": {
5-
"changelog-path": "CHANGELOG.md",
6-
"release-type": "node",
7-
"bump-minor-pre-major": false,
8-
"bump-patch-for-minor-pre-major": false,
9-
"draft": false,
10-
"prerelease": false,
11-
"include-component-in-tag": false
2+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json",
3+
"packages": {
4+
".": {
5+
"changelog-path": "CHANGELOG.md",
6+
"release-type": "node",
7+
"bump-minor-pre-major": false,
8+
"bump-patch-for-minor-pre-major": false,
9+
"draft": false,
10+
"prerelease": false,
11+
"include-component-in-tag": false
12+
}
1213
}
13-
}
1414
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.1.0"
2+
".": "1.0.0"
33
}

.github/workflows/ci.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
permissions:
10+
contents: read
11+
12+
jobs:
13+
ci:
14+
name: CI
15+
runs-on: ubuntu-latest
16+
timeout-minutes: 10
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v5
20+
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v6
23+
with:
24+
node-version-file: '.nvmrc'
25+
cache: 'npm'
26+
27+
- name: Install dependencies
28+
run: npm ci
29+
30+
- name: Run checks
31+
run: npm run check
32+
33+
- name: Run Type Check
34+
run: npm run type-check
35+
36+
- name: Build
37+
run: npm run build
38+
39+
- name: Run tests
40+
run: npm test

.github/workflows/test.yml

Lines changed: 0 additions & 34 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changelog
22

3-
## [0.1.0] - 2026-02-02
3+
## [1.0.0] - 2026-02-02
44

55
- Initial release.

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# bob-cli
22

3-
HiBob CLI for querying employee directory and time off data.
3+
HiBob CLI for querying employee directory and who's out.
44

55
## Setup
66

@@ -33,7 +33,6 @@ bob whosout --from 2024-01-15 --to 2024-01-20
3333
bob outtoday
3434
bob outtoday --date 2024-01-15
3535

36-
bob timeoff <id>
3736
```
3837

3938
### Output formats

biome.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.3.13/schema.json",
3+
"formatter": {
4+
"enabled": true,
5+
"formatWithErrors": false,
6+
"indentStyle": "space",
7+
"indentWidth": 4,
8+
"lineEnding": "lf",
9+
"lineWidth": 100,
10+
"attributePosition": "auto"
11+
},
12+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
13+
"linter": {
14+
"enabled": true,
15+
"rules": {
16+
"recommended": true,
17+
"style": {
18+
"useImportType": "off",
19+
"noEnum": "error"
20+
},
21+
"correctness": {
22+
"noUnusedVariables": "error",
23+
"noUnusedImports": "error",
24+
"noUnusedPrivateClassMembers": "error",
25+
"noUnusedFunctionParameters": "error"
26+
},
27+
"nursery": {},
28+
"performance": {
29+
"noNamespaceImport": "error"
30+
}
31+
}
32+
},
33+
"javascript": {
34+
"formatter": {
35+
"jsxQuoteStyle": "double",
36+
"quoteProperties": "asNeeded",
37+
"trailingCommas": "all",
38+
"semicolons": "asNeeded",
39+
"arrowParentheses": "always",
40+
"bracketSpacing": true,
41+
"bracketSameLine": false,
42+
"quoteStyle": "single",
43+
"attributePosition": "auto"
44+
},
45+
"parser": {
46+
"unsafeParameterDecoratorsEnabled": true
47+
}
48+
},
49+
"vcs": {
50+
"enabled": true,
51+
"clientKind": "git",
52+
"useIgnoreFile": true
53+
},
54+
"files": {
55+
"includes": ["**", "!**/package.json"]
56+
}
57+
}

lefthook.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
pre-commit:
2+
commands:
3+
type-check:
4+
run: npm run type-check
5+
biome:
6+
glob: '*.{ts,js,json}'
7+
run: npx biome check --write --no-errors-on-unmatched --files-ignore-unknown=true {staged_files}
8+
stage_fixed: true
9+
prettier:
10+
glob: '*.{md,yml,yaml,css}'
11+
run: npx prettier --write {staged_files}
12+
stage_fixed: true
13+
14+
pre-push:
15+
commands:
16+
test:
17+
run: npm test

0 commit comments

Comments
 (0)