Skip to content

Instantly share code, notes, and snippets.

View ShayanTheNerd's full-sized avatar
💻
Coding & learning

Shayan Zamani ShayanTheNerd

💻
Coding & learning
View GitHub Profile
@ShayanTheNerd
ShayanTheNerd / .editorconfig
Last active October 15, 2024 19:34
VS Code settings, keyboard shortcuts, snippets, and extensions.
root = true
[*]
charset = utf-8
indent_size = 3
indent_style = tab
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
@ShayanTheNerd
ShayanTheNerd / .gitmessage
Last active October 25, 2024 08:20
Git commit message template based on conventionalcommits.org.
# ====================================== Template ======================================
# <type>[(scope)][!]: <summary> (maximum 50 characters)
# [body]: Explain WHY you are making this change, not HOW. (wrap lines at 72 characters)
# [footer]
# Signed-off-by: <name> (<email address>)
# Reviewed-by: <name> (@<GitHub username>)
# References/Fixes: #<GitHub issue number>
# ======================================================================================
@ShayanTheNerd
ShayanTheNerd / astroRules.js
Last active October 15, 2024 20:09
Exhaustive linting and formatting configs for HTML, JS, TS, Astro, Vue, Tailwind, Vitest, Cypress, and Playwright.
import eslintPluginAstro from 'eslint-plugin-astro';
export default {
...eslintPluginAstro.configs.recommended.rules,
'astro/no-set-html-directive': 'error',
'astro/no-set-text-directive': 'error',
'astro/no-unused-css-selector': 'error',
'astro/prefer-object-class-list': 'error',
'astro/no-exports-from-components': 'error',
};
@ShayanTheNerd
ShayanTheNerd / tsconfig.json
Last active November 9, 2024 06:07
TypeScript Configuration
{
"compilerOptions": {
"paths": {
"@ts/*": ["src/assets/ts/*"],
"@styles/*": ["src/assets/styles/*"],
"@components/*": ["src/components/*"]
},
"baseUrl": ".",
"strict": true,
"noEmit": true,