1.3.0 • Published 8 months ago

eslint-plugin-next-intl v1.3.0

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

eslint-plugin-next-intl 🌐

ESLint plugin for next-intl

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-next-intl:

npm install eslint-plugin-next-intl --save-dev

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-next-intl globally.

Lastly extend in your eslintrc

{
  "extends": ["plugin:next-intl/recommended"]
}

Supported Rules

💼 Configurations enabled in.\ 🌐 Set in the all configuration.\ ✅ Set in the recommended configuration.\ 🔧 Automatically fixable by the --fix CLI option.

Name                             Description💼🔧
no-dynamic-translation-keyEnforce using static strings as keys for translation functions🌐 ✅
use-next-intl-link-over-next-linkReplace next/link imports with next-intl/link imports🌐 ✅🔧
use-router-from-next-intlUse useRouter from next-intl/client instead of next/navigation🌐 ✅🔧

Credits

This set of rules was based off great work done in the repos:

1.2.0

8 months ago

1.1.0

8 months ago

1.3.0

8 months ago

1.2.1

8 months ago

1.0.0

10 months ago