eslint-plugin-no-chinese
v1.2.258
Published
用于检查代码中是否包含中文,检查i18n
Maintainers
Readme
eslint-plugin-no-chinese
用于检查代码中是否包含中文,检查i18n
请在多语言文件中添加/* eslint-disable no-chinese/no-chinese */注释
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-no-chinese:
npm install eslint-plugin-no-chinese --save-devUsage
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
