Sign Up for Free

RunKit +

Try any Node.js package right in your browser

This is a playground to test code. It runs a full Node.js environment and already has all of npm’s 1,000,000+ packages pre-installed, including eslint-plugin-i18n with all npm packages installed. Try it out:

var eslintPluginI18n = require("eslint-plugin-i18n")

This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.

eslint-plugin-i18n v2.0.0

Internationalization's linting rules for ESLint

NPM License NPM Version NPM Downloads Build Status Coverage Status

eslint-plugin-i18n

ESLint rules for internationalization.

Installation

Install ESLint as a dev-dependency:

$ npm install --save-dev eslint

Install eslint-plugin-i18n as a dev-dependency:

$ npm install --save-dev eslint-plugin-i18n

Configuration

Add plugins section to your .eslintrc and specify eslint-plugin-i18n as a plugin:

{
  "plugins": [
    "i18n"
  ]
}

Finally, enable the rules that you would like to use.

{
  "rules": {
    "i18n/no-chinese-character": 1,
    "i18n/no-greek-character": 1,
    "i18n/no-japanese-character": 1,
    "i18n/no-korean-character": 1,
    "i18n/no-russian-character": 1,
    "i18n/no-thai-character": 1
  }
}

List of supported rules

License

eslint-plugin-i18n is licensed under the MIT License.

Changelog

v2.0.0 - July 4, 2020

  • Dropped support for node < 10
  • Added JSX support

Metadata

RunKit is a free, in-browser JavaScript dev environment for prototyping Node.js code, with every npm package installed. Sign up to share your code.
Sign Up for Free