Skip to content

Commit

Permalink
preparations for importing 2022 and 2023
Browse files Browse the repository at this point in the history
  • Loading branch information
Magiczne committed Nov 11, 2024
1 parent 83ce2b6 commit 71dfb2d
Show file tree
Hide file tree
Showing 7 changed files with 1,527 additions and 203 deletions.
2 changes: 2 additions & 0 deletions .husky/_/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#!/usr/bin/env sh
. "$(dirname "$0")/h"
3 changes: 3 additions & 0 deletions .lintstagedrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"*.ts": "prettier --write"
}
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"quoteProps": "as-needed",
"semi": false,
"singleQuote": true,
"tabWidth": 4,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": false,
"overrides": [
Expand Down
18 changes: 14 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# Advent of Code

Solutions for https://adventofcode.com/ using various languages, various techniques, basically whatever I was
playing with at the time or felt like doing it.
playing with at the time or felt like doing it.

| Year | Language | Comments |
|--------------|-----------------------|-----------------------------------------------------|
| [2015](2015) | [Go](https://go.dev/) | Day 12 part 2 done using JavaScript |
Some editions were finished later, or even done in a different time (for example I've done 2015 edition in 2024 :D)

| Year | Language | Comments |
|--------------|-----------------------|-----------------------------------------------------------------|
| [2015](2015) | [Go][lang-go] | Day 12 part 2 done using JavaScript. |
| [2022](2022) | [TypeScript][lang-ts] | With some help from [Radash][lib-radash] and [Ramda][lib-ramda] |
| [2023](2023) | [TypeScript][lang-ts] | With some help from [Radash][lib-radash] and [Ramda][lib-ramda] |

[lang-go]: https://go.dev/
[lang-ts]: https://www.typescriptlang.org/

[lib-radash]: https://github.com/rayepps/radash
[lib-ramda]: https://github.com/ramda/ramda
19 changes: 14 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,22 @@
"author": "Michał Kleszczyński <[email protected]>",
"license": "MIT",
"scripts": {
"format": "prettier 2022 --write"
"format": "prettier 2022 2023 --write",
"postinstall": "husky"
},
"dependencies": {
"prettier": "^3.3.3"
"devDependencies": {
"@types/node": "^22.9.0",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"prettier": "^3.3.3",
"typescript": "^5.6.3"
},
"workspaces": [
"2022"
"2022",
"2023"
],
"packageManager": "[email protected]"
"packageManager": "[email protected]",
"dependencies": {
"tsx": "^4.19.2"
}
}
20 changes: 20 additions & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"compilerOptions": {
"allowImportingTsExtensions": true,
"forceConsistentCasingInFileNames": true,
"lib": ["ESNext"],
"module": "ESNext",
"moduleResolution": "Node",
"noEmit": true,
"noImplicitAny": true,
"noImplicitOverride": true,
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noUnusedLocals": true,
"pretty": true,
"skipLibCheck": true,
"strict": false,
"target": "ESNext",
"useUnknownInCatchVariables": true
}
}
Loading

0 comments on commit 71dfb2d

Please sign in to comment.