A modern ESLint configuration for TypeScript projects using the new flat config format.
-
Create or edit
.npmrc
in your project root:@tjrgg:registry=https://npm.pkg.github.com
-
Install the package:
pnpm add -D @tjrgg/eslint-config
Create an eslint.config.js
file in your project root:
import tjrggConfig from "@tjrgg/eslint-config"
export default tjrggConfig
- TypeScript support
- Prettier integration
- Import sorting and organization
- Unicorn plugin with recommended rules
- Modern JavaScript features
- Strict type checking
- Consistent code style
- ESLint v9.0.0 or higher
- TypeScript
- Node.js 18.0.0 or higher
- GitHub Package Registry access