chore: prepare first release 1.0.1
This commit is contained in:
7
packages/eslint-config/CHANGELOG.md
Normal file
7
packages/eslint-config/CHANGELOG.md
Normal file
@@ -0,0 +1,7 @@
|
||||
# @mintel/eslint-config
|
||||
|
||||
## 1.0.1
|
||||
|
||||
### Patch Changes
|
||||
|
||||
- Initial release of the Mintel factory packages.
|
||||
@@ -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.
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@mintel/eslint-config",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://npm.infra.mintel.me"
|
||||
|
||||
Reference in New Issue
Block a user