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 / astroRules.js
Last active August 17, 2024 16:40
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 September 19, 2024 12:02
TypeScript Configuration
{
"compilerOptions": {
"paths": {
"@ts/*": ["src/assets/ts/*"],
"@styles/*": ["src/assets/styles/*"],
"@components/*": ["src/components/*"]
},
"baseUrl": ".",
"strict": true,
"noEmit": true,