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 / eslint.config.js
Last active May 6, 2024 20:45
Exhaustive ESLint config for Vue.js, TypeScript, and Tailwind CSS
import jsESLint from '@eslint/js';
import vueESLint from 'eslint-plugin-vue';
import antfuConfig from '@antfu/eslint-config';
import htmlESLintParser from '@html-eslint/parser';
import htmlESLint from '@html-eslint/eslint-plugin';
import stylisticESLint from '@stylistic/eslint-plugin';
/* eslint-disable no-magic-numbers -- Improve SNR */
const jsRules = {
...jsESLint.configs.recommended.rules,
@ShayanTheNerd
ShayanTheNerd / tsconfig.json
Created March 23, 2024 07:13
General TypeScript Configurations
{
"compilerOptions": {
"paths": {
"@ts/*": ["src/assets/ts/*"],
"@styles/*": ["src/assets/styles/*"],
"@components/*": ["src/components/*"]
},
"baseUrl": ".",
"strict": true,
"noEmit": true,