eslint-plugin-no-chinese

1.2.258 • Public • Published

eslint-plugin-no-chinese

用于检查代码中是否包含中文,检查i18n

请在多语言文件中添加/* eslint-disable no-chinese/no-chinese */注释

Installation

You'll first need to install ESLint:

npm i eslint --save-dev

Next, install eslint-plugin-no-chinese:

npm install eslint-plugin-no-chinese --save-dev

Usage

Add no-chinese to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:

{
    "plugins": [
        "no-chinese"
    ]
}

Then configure the rules you want to use under the rules section.

{
    "rules": {
        "no-chinese/no-chinese": "error",
        "no-chinese/no-console-chinese": "warn"
    }
}

Supported Rules

  • Fill in provided rules here

/eslint-plugin-no-chinese/

    Package Sidebar

    Install

    npm i eslint-plugin-no-chinese

    Weekly Downloads

    0

    Version

    1.2.258

    License

    ISC

    Unpacked Size

    5.29 kB

    Total Files

    7

    Last publish

    Collaborators

    • binjie09