Created
November 11, 2025 19:46
-
-
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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