cool tools to code like me.
ESLint configurations for React/TypeScript projects using ESLint v9.
npm install --save-dev eslint@latest prettier@latest eslint-config-antoine@latest
Create an eslint.config.js
file in your project root:
import antoine from "eslint-config-antoine";
export default [
...antoine,
// Your additional rules here...
];
Make sure your package.json has "type": "module"
if you're using import/export syntax.
- 🎯 TypeScript and React best practices
- 🎨 Prettier integration
- ⚡️ Zero config setup
- 🔄 Auto-detects React version
- 🚀 Fully supports ESLint v9 flat config
If you're migrating from v1.x (ESLint v8):
-
Update your ESLint to v9:
npm install --save-dev eslint@^9.0.0
-
Replace your
.eslintrc.js
with a neweslint.config.js
:import antoine from "eslint-config-antoine"; export default [ ...antoine, // Your additional rules here... ];
-
Make sure your package.json has
"type": "module"
if you're using import/export syntax.