Internationalization's linting rules for ESLint
npm install eslint-plugin-i18n[![NPM License][npm-license-image]][npm-license-url]
[![NPM Version][npm-version-image]][npm-version-url]
[![NPM Downloads][npm-downloads-image]][npm-downloads-url]
[![Ubuntu CI Status][github-actions-linux-image]][github-actions-linux-url]
[![Windows CI Status][github-actions-win-image]][github-actions-win-url]
[![Coverage Status][codecov-image]][codecov-url]
[npm-license-image]: https://img.shields.io/npm/l/eslint-plugin-i18n.svg
[npm-license-url]: https://www.npmjs.com/package/eslint-plugin-i18n
[npm-version-image]: https://img.shields.io/npm/v/eslint-plugin-i18n.svg
[npm-version-url]: https://www.npmjs.com/package/eslint-plugin-i18n
[npm-downloads-image]: https://img.shields.io/npm/dt/eslint-plugin-i18n.svg
[npm-downloads-url]: https://www.npmjs.com/package/eslint-plugin-i18n
[github-actions-linux-image]: https://github.com/chejen/eslint-plugin-i18n/actions/workflows/linux.yml/badge.svg
[github-actions-linux-url]: https://github.com/chejen/eslint-plugin-i18n/actions/workflows/linux.yml
[github-actions-win-image]: https://github.com/chejen/eslint-plugin-i18n/actions/workflows/windows.yml/badge.svg
[github-actions-win-url]: https://github.com/chejen/eslint-plugin-i18n/actions/workflows/windows.yml
[codecov-image]: https://codecov.io/github/chejen/eslint-plugin-i18n/branch/master/graph/badge.svg?branch=master
[codecov-url]: https://app.codecov.io/gh/chejen/eslint-plugin-i18n?branch=master
eslint-plugin-i18n
===================
ESLint rules for internationalization.
Install ESLint as a dev-dependency:
``sh`
$ npm install --save-dev eslint
Install eslint-plugin-i18n as a dev-dependency:
`sh`
$ npm install --save-dev eslint-plugin-i18n
Add plugins section to your .eslintrc and specify eslint-plugin-i18n as a plugin:
`json`
{
"plugins": [
"i18n"
]
}
Finally, enable the rules that you would like to use.
`json`
{
"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
}
}
* no-chinese-character: Prevent usage of Chinese characters.
* no-greek-character: Prevent usage of Greek characters.
* no-japanese-character: Prevent usage of Japanese characters.
* no-korean-character: Prevent usage of Korean characters.
* no-russian-character: Prevent usage of Russian characters.
* no-thai-character: Prevent usage of Thai characters.
eslint-plugin-i18n is licensed under the MIT License.
Features
- Added excludeModuleImports option to exclude imports from linting.excludeArgsForFunctions
- Updated the option.
Chore
- Upgreded devDependencies.
- Applied auto-publish.