This script automatically configures ESLint with Standard-style rules for React projects using TypeScript.
- Copy the
setup-eslint.shfile to the root of your new project. - Run:
./setup-eslint.sh
Option 1 - PowerShell (Recommended):
- Copy the
setup-eslint.ps1file to the root of your new project. - Run:
.\setup-eslint.ps1
Option 2 - Command Prompt:
- Copy the
setup-eslint.batfile to the root of your new project. - Run:
setup-eslint.bat
- ✅ ESLint 9 with flat config configuration
- ✅ Support for React + TypeScript
- ✅ Standard-style rules (no semicolons, single quotes, etc.)
- ✅ Explicit function typing (warnings)
- ✅ React Hooks and React Refresh
- No semicolons (
;) - Single quotes (
') - 2-space indentation
- No trailing commas
- Space before function parentheses
- Explicit function typing (warning)
- And more Standard-
- style formatting rules
npm run lint