- API relevant changes
feat
Commits, that adds or remove a new featurefix
Commits, that fixes a bug
refactor
Commits, that rewrite/restructure your code, however does not change any API behaviourperf
Commits are specialrefactor
commits, that improve performance
style
Commits, that do not affect the meaning (white-space, formatting, missing semi-colons, etc)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Create new Excalidraw file in a "designs" folder | |
function new_excalidraw() { | |
local filename="${1:-diagram}" # Use 'diagram' as default if no name provided | |
# Validate filename | |
if [[ ! "$filename" =~ ^[a-zA-Z0-9_-]+$ ]]; then | |
echo -e "\033[0;31mError: Filename can only contain letters, numbers, underscores, and hyphens\033[0m" | |
return 1 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#region: Markdown parsing utils | |
import rehypeFormat from "rehype-format"; | |
import rehypeStringify from 'rehype-stringify'; | |
import remarkGfm from "remark-gfm"; | |
import remarkParse from 'remark-parse'; | |
import remarkRehype from 'remark-rehype'; | |
import { unified } from 'unified'; | |
export async function parseMarkdown(textToParseIntoMarkdown: string): Promise<unknown> { | |
const markdownProcessor = unified() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
... | |
"importOrder": [ | |
"^(.*).css$", | |
"^react$", | |
"<THIRD_PARTY_MODULES>", | |
"^@components/(.*)$", | |
"^@hooks/(.*)$", | |
"^[./]" | |
], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"compilerOptions": { | |
"strict": true, | |
"noUnusedLocals": true, | |
"noUnusedParameters": true, | |
"noImplicitAny": true | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"printWidth": 85, | |
"arrowParens": "avoid", | |
"tabWidth": 2, | |
"singleQuote": false, | |
"jsxSingleQuote": false, | |
"trailingComma": "all", | |
"bracketSpacing": true, | |
"bracketSameLine": false | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @summary Generates recommendations based on selected items and custom criteria using a point-based system. | |
* @param allItems - An array of all available items. | |
* @param selectedItems - An array of selected items. | |
* @param criteria - An array of functions to calculate points based on different criteria. | |
* @param numberOfRecommendations - The number of recommendations to generate, defaults to 3. | |
* @returns An array of recommended items. | |
* @example | |
* const allItems = [1, 2, 3, 4, 5]; | |
* const selectedItems = [1, 2]; |