chore: prepare first release 1.0.1
This commit is contained in:
@@ -1,13 +1,28 @@
|
||||
# @mintel/eslint-config
|
||||
|
||||
Shared ESLint configurations for Mintel projects.
|
||||
Shared ESLint configurations for Mintel projects, enforcing code quality and consistent style across Next.js and TypeScript codebases.
|
||||
|
||||
## Usage
|
||||
## 📦 Configurations
|
||||
|
||||
### `next`
|
||||
A comprehensive configuration for Next.js projects.
|
||||
- **Extends**: `next/core-web-vitals` and `next/typescript`.
|
||||
- **Custom Rules**:
|
||||
- `_` prefix for unused variables is allowed.
|
||||
- `any` type is permitted (for rapid migration/prototyping).
|
||||
- React unescaped entities check is disabled.
|
||||
- Image element warnings are enabled (prefer `next/image`).
|
||||
|
||||
## 🚀 Usage
|
||||
|
||||
### In a Next.js App
|
||||
Create an `eslint.config.mjs` in your project root:
|
||||
|
||||
### Next.js
|
||||
In your `eslint.config.mjs`:
|
||||
```javascript
|
||||
import { nextConfig } from "@mintel/eslint-config/next";
|
||||
|
||||
export default nextConfig;
|
||||
```
|
||||
|
||||
## 🛠 Development
|
||||
To add new rules, modify `packages/eslint-config/next.js`. Remember to create a changeset if you make breaking changes.
|
||||
|
||||
Reference in New Issue
Block a user