# @sanity/eslint-config-i18n

> An ESLint configuration to help with localizing Sanity Studios

Latest version **2.0.0** (published 2025-06-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @sanity/eslint-config-i18n
pnpm add @sanity/eslint-config-i18n
yarn add @sanity/eslint-config-i18n
bun add @sanity/eslint-config-i18n
```

## Health

**Score 50/100 (C)** — status: stable.

Positive: esm support; no vulnerabilities; has provenance; high maintenance score.

Warnings: low downloads; no types.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2025-06-12 |
| First published | 2023-12-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 2 |
| Unpacked size | 4.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 3 |
| Author | Sanity.io |
| Maintainers | kmelve, bjoerge, rexxars, skogsmaskin, tonina, mattcraig, joneidejohnsen, rubioz, robinpyon, mariuslundgard, sanity-io, evenw, radhe_sanity, rbotten, danielsgroves, judofyr, ryanblock, obliadp, dcilke, madken, fredcarlsen, hermanw, tambet, sgulseth, atombender, simeonsanity, stipsan, snorreeb, rankers, rdunk, michael-sanity, vincentquigley, ritasdias, kenjonespizza, rneatherway-sanity, josh_sanity_io, cngonzalez-sanity, jjburbridge, tdfka_rick, svirs, ryanbonial-sanity, indrek.karner, ash, sergeisarviro, refiito, drewsanity, kaspar.lippmaa.sanity, dam, simen.svale, tbeseda, daniel.malmer, jordanl17, colepeters, armandocerna, joan_miralles_paez, christianhg, pedro-sanity, jwoods-sanity, ricokahler, tiit.kass.saity, binoy14, pauloborgesf, ausha, chrislarocquesanity, rostimelk, mattlewine.sanity, msfragala, adoprog, tonysanity, mrmrs, betson, georgedoescode, macdonst, eoinsanity, dashedstripes, jmswrnr, snocorp_sanity, mmgj, filmaj, samhem, gu-stav, patricksanity, mads.mogenshoj, sanitytom, sanity-cb, mm-sanity, sanitykev, victor.ayogu, ryanbethel_sanity, brianleroux |
| Keywords | sanity, eslint |

## Links

- npm: https://www.npmjs.com/package/@sanity/eslint-config-i18n
- Repository: https://github.com/sanity-io/eslint-config-i18n
- Homepage: https://www.sanity.io/
- Issues: https://github.com/sanity-io/eslint-config-i18n/issues
- npm.io page: https://npm.io/package/@sanity/eslint-config-i18n

## Dependencies (2)

- [eslint-plugin-i18next](https://npm.io/package/eslint-plugin-i18next.md) ^6.1.1
- [@sanity/eslint-plugin-i18n](https://npm.io/package/@sanity/eslint-plugin-i18n.md) ^1.1.0

## Alternatives

- [eslint-plugin-sonarjs](https://npm.io/package/eslint-plugin-sonarjs.md) — 2.9M weekly downloads
- [eslint-config-expo](https://npm.io/package/eslint-config-expo.md) — 1.5M weekly downloads
- [@matter/protocol](https://npm.io/package/@matter/protocol.md) — 63.5K weekly downloads
- [@eventcatalog/linter](https://npm.io/package/@eventcatalog/linter.md) — 24.8K weekly downloads
- [@pandacss/eslint-plugin](https://npm.io/package/@pandacss/eslint-plugin.md) — 18.7K weekly downloads

## Recent versions

- 2.0.0 (latest) — 2025-06-12
- 1.1.0 — 2024-01-23
- 1.0.0 — 2023-12-05

## README

# @sanity/eslint-config-i18n

An ESLint configuration to help with localizing Sanity Studios.

This ESLint config provides rules to enforce specific code standards in internationalization practices, particularly focusing on strings literals in JSX. It aims to improve code quality and maintainability in projects with internationalization concerns.

Depends on:

- [`@sanity/eslint-plugin-i18n`](https://github.com/sanity-io/eslint-plugin-i18n)
  - Rule [`no-attribute-string-literals`](https://github.com/sanity-io/eslint-plugin-i18n#no-attribute-string-literals)
  - Rule [`no-attribute-template-literals`](https://github.com/sanity-io/eslint-plugin-i18n#no-attribute-template-literals)
- [`eslint-plugin-i18next`](https://github.com/edvardchen/eslint-plugin-i18next)
  - Rule [`no-literal-string`](https://github.com/edvardchen/eslint-plugin-i18next#rule-no-literal-string)

## Installation

### Install

```
pnpm add eslint @sanity/eslint-config-i18n --save-dev
```

or

```
npm install eslint @sanity/eslint-config-i18n --save-dev
```

### Update the configuration

Update your `eslint.config.mjs` to include `"@sanity/eslint-config-i18n"`

```diff
 import studio from '@sanity/eslint-config-studio'
+import i18n from '@sanity/eslint-config-i18n'

export default [
   ...studio,
+  ...i18n,
]
```

### Version compatibility

This package is designed to work with ESLint >= 9, which supports/uses the new ["flat configuration"](https://eslint.org/blog/2022/08/new-config-system-part-2/) format.

If you are using ESLint <= 8, you should install and use [`@sanity/eslint-config-i18n@1`](https://github.com/sanity-io/eslint-config-i18n/tree/v1.1.0).

## Release new version

Run ["CI & Release" workflow](https://github.com/sanity-io/eslint-config-i18n/actions).
Make sure to select the main branch and check "Release new version".

Semantic release will only release on configured branches, so it is safe to run release on any branch.

---
_Source: https://npm.io/package/@sanity/eslint-config-i18n · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
