Skip to content

binjie09/eslint-plugin-no-chinese

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published