Skip to content

Instantly share code, notes, and snippets.

@sollazzo08
Created November 11, 2025 19:46
Show Gist options
  • Select an option

  • Save sollazzo08/b18217b98234449d42990bca18bfed44 to your computer and use it in GitHub Desktop.

Select an option

Save sollazzo08/b18217b98234449d42990bca18bfed44 to your computer and use it in GitHub Desktop.
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",
globals: globals.node,
},
rules: {
"@typescript-eslint/no-unused-vars": ["warn", { argsIgnorePattern: "^_" }],
},
},
]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment