# @stripe/extensibility-eslint-plugin

ESLint plugin and flat config for Stripe Apps development. Includes security checks, code quality rules, and FormSpec type-safety rules.

## Installation

```bash
npm install --save-dev @stripe/extensibility-eslint-plugin
```

Requires `eslint ^9.0.0` and `typescript ^5.8.0` as peer dependencies. The default config uses `@typescript-eslint` rules, so you also need `typescript-eslint` installed:

```bash
npm install --save-dev eslint typescript typescript-eslint
```

## Usage

Add the default config to your `eslint.config.mjs`:

```javascript
import stripeAppsConfig from '@stripe/extensibility-eslint-plugin';

export default [
  ...stripeAppsConfig,
  // Your custom rules here
];
```

## Exported configs

| Export                         | Description                                        |
| ------------------------------ | -------------------------------------------------- |
| `default` / `stripeAppsConfig` | Full flat config with recommended + FormSpec rules |
