1.0.1 • Published 7 months ago
@foodybonus/eslint v1.0.1
@foody/eslint
Shared ESLint configuration for Foody projects.
Installation
npm install --save-dev @foody/eslintUsage
ESLint Flat Config (eslint.config.js)
import foodyEslint from '@foody/eslint'
export default [
...foodyEslint,
// Your custom rules here
]TypeScript Configuration
This package expects a tsconfig.app.json file in your project root. A sample configuration is provided that you can copy:
cp node_modules/@foody/eslint/tsconfig.app.example.json ./tsconfig.app.jsonFeatures
- TypeScript support
- React best practices
- React Hooks rules
- Import sorting and organization
- Prettier integration
- Consistent code style enforcement
License
MIT