Socket
Socket
Sign inDemoInstall

eslint-plugin-i18n

Package Overview
Dependencies
0
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    eslint-plugin-i18n

Internationalization's linting rules for ESLint


Version published
Weekly downloads
5.5K
increased by30.75%
Maintainers
1
Install size
21.3 kB
Created
Weekly downloads
 

Readme

Source

NPM License NPM Version NPM Downloads Ubuntu CI Status Windows CI 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.3.1 - April 10, 2024

  • Extended the ability of excludeArgsForFunctions option.

v2.3.0 - January 26, 2024

  • Added rule options to exclude some function arguments from linting.

v2.2.0 - January 16, 2024

  • Added rule options to support comments linting.

v2.1.0 - June 17, 2021

  • Added rule options to support identifier linting.
  • Dropped the support of node < 12 for development environment (due to lint-staged and mocha)

v2.0.0 - July 4, 2020

  • Dropped support for node < 10
  • Added JSX support

Keywords

FAQs

Last updated on 10 Apr 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc