eslint-plugin-zhlint
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -77,2 +77,3 @@ const zhlint = require("zhlint"); | ||
zhlint: { | ||
...context.options[0]?.zhlint, | ||
rules: { | ||
@@ -83,3 +84,2 @@ preset: "default", | ||
}, | ||
...context.options[0]?.zhlint, | ||
}, | ||
@@ -86,0 +86,0 @@ }; |
{ | ||
"name": "eslint-plugin-zhlint", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "ESLint plugin for Chinese typographies (中文排版) with zhlint", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
@@ -53,2 +53,3 @@ # <img src="https://raw.githubusercontent.com/Jinjiang/zhlint/master/docs/logo.svg" style="vertical-align: middle;"> eslint-plugin-zhlint | ||
"rules": { | ||
"halfWidthPunctuation": "", | ||
"fullWidthPunctuation": ",。:;?!“”‘’()", | ||
@@ -68,3 +69,3 @@ "unifiedPunctuation": "traditional" | ||
- `lintStringLiterals` (boolean, default `true`): `true` to enable zhlint in string literals (single-quoted / double-quoted strings, and template literals) | ||
- `zhlint` (object): options passed down to [zhlint](https://github.com/Jinjiang/zhlint#other-type-defs-and-advanced-usage) | ||
- `zhlint` (object): options passed down to [zhlint](https://github.com/Jinjiang/zhlint#options) | ||
@@ -71,0 +72,0 @@ ## Supported rules |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6621
73