@jimmy.codes/eslint-config v5.16.0
@jimmy.codes/eslint-config
A simple, modern ESLint config that covers most use cases.
Why Use This?
A strict-but-practical ESLint config that doesn’t require much thought. It works out of the box, adapts to your stack, and enforces good patterns without getting in the way.
- Auto-detects dependencies – Handles React, TypeScript, Astro, Next.js, Vitest, Jest, Playwright, Storybook, and TanStack Query.
- Prevents real issues – Focuses on rules that actually matter.
- Fast & lightweight – Loads only what’s needed, so it won’t slow you down.
- No setup needed – Install it, import it, done.
- Customizable – Turn off what you don’t need.
- Works with tests – Supports Vitest, Jest, Playwright, and Testing Library.
- Encourages modern JS – Keeps things clean and readable.
Installation & Usage
!NOTE
Works best with @jimmy.codes/prettier-config.
Install
pnpm add -D @jimmy.codes/eslint-config
Basic Setup
Add this to eslint.config.ts
:
import { defineConfig } from "@jimmy.codes/eslint-config";
export default defineConfig();
It’ll auto-configure based on your installed dependencies.
Customization
Disable Auto-Detection
import { defineConfig } from "@jimmy.codes/eslint-config";
export default defineConfig({ autoDetect: false });
Enable/Disable Rule Sets
import { defineConfig } from "@jimmy.codes/eslint-config";
export default defineConfig({
astro: false,
jest: false,
nextjs: false,
playwright: false,
react: false,
storybook: false,
tanstackQuery: false,
testingLibrary: false,
typescript: false,
vitest: false,
});
Override Specific Rules
import { defineConfig } from "@jimmy.codes/eslint-config";
export default defineConfig({
overrides: [
{
files: ["**/*.js"],
rules: {
"prefer-spread": "error",
},
},
{
files: ["**/*.ts"],
rules: {
"prefer-const": "error",
},
},
],
});
Plugins Used
This config includes the following plugins:
Contributing
PRs and issues welcome.
Credits
Inspired by:
7 months ago
11 months ago
7 months ago
11 months ago
7 months ago
11 months ago
11 months ago
11 months ago
5 months ago
5 months ago
6 months ago
11 months ago
11 months ago
12 months ago
12 months ago
11 months ago
11 months ago
11 months ago
11 months ago
12 months ago
12 months ago
11 months ago
12 months ago
12 months ago
11 months ago
5 months ago
8 months ago
7 months ago
7 months ago
11 months ago
11 months ago
10 months ago
10 months ago
7 months ago
7 months ago
7 months ago
7 months ago
11 months ago
7 months ago
11 months ago
5 months ago
6 months ago
6 months ago
11 months ago
11 months ago
12 months ago
11 months ago
11 months ago
12 months ago
11 months ago
8 months ago
8 months ago
11 months ago
12 months ago
12 months ago
11 months ago
11 months ago
11 months ago
12 months ago
7 months ago
7 months ago
7 months ago
11 months ago
11 months ago
11 months ago
7 months ago
10 months ago
7 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
12 months ago
1 year ago
1 year ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago