0.1.0 • Published 2 years ago
eslint-plugin-chinese v0.1.0
eslint-plugin-chinese
中文字符检查,判断是否包含中文简体或繁体
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install eslint-plugin-chinese:
npm install eslint-plugin-chinese --save-devUsage
Add chinese to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"chinese"
]
}Then configure the rules you want to use under the rules section.
{
"rules": {
"chinese/chinese-check": ["error", "S", { "autoFix": false,"ignore": ["console.log"] }]
}
}Rules
🔧 Automatically fixable by the --fix CLI option.
| Name | Description | 🔧 |
|---|---|---|
| chinese | 中文简繁体校验 | 🔧 |
0.1.0
2 years ago