Skip to content

Instantly share code, notes, and snippets.

View sollazzo08's full-sized avatar
🎯
Focusing

Michael sollazzo08

🎯
Focusing
View GitHub Profile
@sollazzo08
sollazzo08 / eslint.config.mts
Created November 11, 2025 19:46
My standard ESLint configuration for modern Node.js + TypeScript projects. It uses the new flat-config format, typescript-eslint recommended rules, Node globals, and CommonJS module settings.
import globals from "globals";
import tseslint from "typescript-eslint";
import { defineConfig } from "eslint/config";
export default defineConfig([
...tseslint.configs.recommended,
{
files: ["**/*.{js,cjs,mjs,ts,cts,mts}"],
languageOptions: {
sourceType: "commonjs",
@sollazzo08
sollazzo08 / tsconfig.json
Created November 11, 2025 18:41
My go-to TypeScript configuration for modern Node.js libraries built for CommonJS with an ES2020 target.
{
"compilerOptions": {
"target": "ES2020",
"module": "CommonJS",
"moduleResolution": "Node",
"lib": ["ES2020"],
"rootDir": "src",
"outDir": "dist",
"declaration": true,
@sollazzo08
sollazzo08 / macos-setup.sh
Last active November 10, 2025 06:03
Bash script for bootstrapping a new macOS environment. Installs Homebrew (if missing), updates packages, and sets up essential dev tools, languages (Node, Python, Go), networking and security utilities, and desktop apps.
#!/bin/bash
# Script to set up a new macOS system with the required tools
echo "Starting macOS setup..."
# Check if Homebrew is installed
if ! command -v brew &>/dev/null; then
echo "Homebrew not found. Installing Homebrew..."
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"