# `@hi18n/eslint-plugin`

## 0.2.3

### Patch Changes

- e40e31c: chore(ts): enable verbatimModuleSyntax and isolatedDeclarations
- 40b5c82: chore(ts): import ts files as \*.ts

## 0.2.2

### Patch Changes

- 5819394: chore(eslint-plugin): make more conveniently typed

## 0.2.1

### Patch Changes

- b887523: fix(eslint-plugin): recover default export compat

## 0.2.0

### Migration Guide

It now supports [ESLint 9.0](https://eslint.org/docs/latest/use/migrate-to-9.0.0) and [Flat Config](https://eslint.org/docs/latest/use/configure/migration-guide)!

We now advise you to leverage the flat config feature:

```javascript
// eslint.config.js
import hi18n from "@hi18n/eslint-plugin";

export default [
  // ...

  hi18n.configs["flat/recommended"],
  // Useful if TypeScript is configured in your project
  hi18n.configs["flat/recommended-type-checked-only"],

  // ...
];
```

Also, the internal rules are no longer exported from the main entry point `@hi18n/eslint-plugin`. They are moved into `@hi18n/eslint-plugin/internal-rules` and their interfaces are slightly changed.

### Minor Changes

- c478ab5: feat(eslint): support ESLint 9

## 0.1.13

### Patch Changes

- 9a55438: chore(build): Use TypeScript to build packages

## 0.1.12

### Patch Changes

- 10baf8f: fix(monorepo): ensure workspace dependencies are removed from published materials
- 19e0ca6: chore(build): bump TypeScript to 5.9

## 0.1.11

### Patch Changes

- d3f3120: chore(misc): migrate from Jest to Vitest

## 0.1.10

### Patch Changes

- bafd25f: chore(misc): Test in Node.js 22
- fbe729b: Align CHANGELOG format with Changesets
- 38253a0: chore(misc): use pnpm mode
- 6a5c0bd: chore(misc): set up Changesets to manage releases

## 0.1.9

### Patch Changes

- Add internal APIs for passive importing in `@hi18n/cli`.
- Add defaultOptions to the rules (to fix type error with recent typescript-eslint)

## 0.1.8

### Patch Changes

- Support dynamically-loaded Catalogs introduced in `@hi18n/core` 0.1.9.

## 0.1.7

### Patch Changes

- Support a new overload for `new Catalog` constructor introduced in `@hi18n/core` 0.1.6. It accepts a locale identifier as the first argument.

## 0.1.6

### Patch Changes

- Add a new rule `@hi18n/react-component-params` https://github.com/wantedly/dx/issues/702
  - This is not included in `plugin:@hi18n/recommended` because it requires type checking.
- Added a new preset `plugin:@hi18n/recommended-requiring-type-checking`
  - `@hi18n/react-component-params` is included in this preset.
- Corner case bug fix on `new Book<this>()`

## 0.1.5

### Patch Changes

- Fix `TypeError: Cannot read properties of undefined (reading 'node')`
  on an empty Vocabulary or an empty Catalog in internally used rules.

## 0.1.4

### Patch Changes

- Automatically include the plugin in the "recommended" config.
- Internal: add support for `msg.todo` (for use in `@hi18n/cli`)

## 0.1.3

### Patch Changes

- Add prepack script. It allows you to use unreleased versions from git with yarn v2 or later.
- Add a new rule `@hi18n/migrate-from-lingui` implementing semi-automatic codemod as autofix.
  This rule is turned off by default.
- Fix error where codes like `const [, x] = [];` cannot appear with `import { Translate } from "@hi18n/react";`.

## 0.1.2

### Patch Changes

- Internal: add support for `translationId`, `t.todo` and `<Translate.Todo>` (for use in `@hi18n/cli`)

## 0.1.1

### Patch Changes

- Fix wrong rule names in the recommended config

## 0.1.0

### Patch Changes

Initial release.
