Skip to content

Commit 6df2ff1

Browse files
committed
feat: add people cannnot visually notice rule
1 parent ff2ae6c commit 6df2ff1

File tree

3 files changed

+28
-3
lines changed

3 files changed

+28
-3
lines changed

lib/textlint-rule-preset-vuejs-jp.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ module.exports = {
3737
"ja-space-between-half-and-full-width": presetJaSpacing["ja-space-between-half-and-full-width"],
3838
"ja-space-around-code": presetJaSpacing["ja-space-around-code"],
3939
"no-mix-dearu-desumasu": moduleInterop(require("textlint-rule-no-mix-dearu-desumasu")),
40-
"no-invalid-control-character": moduleInterop(require("@textlint-rule/textlint-rule-no-invalid-control-character"))
40+
"no-nfd": moduleInterop(require("textlint-rule-no-nfd")),
41+
"no-invalid-control-character": moduleInterop(require("@textlint-rule/textlint-rule-no-invalid-control-character")),
42+
"no-zero-width-spaces": moduleInterop(require("textlint-rule-no-zero-width-spaces"))
4143
},
4244
rulesConfig: {
4345
"1.1.1.本文": true,
@@ -83,6 +85,8 @@ module.exports = {
8385
"preferInList": "ですます",
8486
"strict": true
8587
},
86-
"no-invalid-control-character": true
88+
"no-nfd": true,
89+
"no-invalid-control-character": true,
90+
"no-zero-width-spaces": true
8791
}
8892
};

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "textlint-rule-preset-vuejs-jp",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"description": "",
55
"keywords": [
66
"textlint",
@@ -24,6 +24,8 @@
2424
"@textlint-rule/textlint-rule-no-invalid-control-character": "^2.0.0",
2525
"@textlint/module-interop": "^12.0.0",
2626
"textlint-rule-no-mix-dearu-desumasu": "^5.0.0",
27+
"textlint-rule-no-nfd": "^1.0.2",
28+
"textlint-rule-no-zero-width-spaces": "^1.0.1",
2729
"textlint-rule-preset-ja-spacing": "^2.1.3",
2830
"textlint-rule-preset-jtf-style": "^2.3.12"
2931
}

yarn.lock

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -396,6 +396,20 @@ textlint-rule-no-mix-dearu-desumasu@^5.0.0:
396396
textlint-rule-helper "^2.0.0"
397397
unist-util-visit "^3.0.0"
398398

399+
textlint-rule-no-nfd@^1.0.2:
400+
version "1.0.2"
401+
resolved "https://registry.yarnpkg.com/textlint-rule-no-nfd/-/textlint-rule-no-nfd-1.0.2.tgz#8c5793b57caada6e620b89d7a1d2886487dbbe2e"
402+
integrity sha512-n6tUx40/V6koDo78qqePHxSovuwSIKO0xwY3FCqVDbcfg9GxQCjde1twQJ99T3bs4LabhPOo/Pt3USaQ9XcTRQ==
403+
dependencies:
404+
match-index "^1.0.3"
405+
textlint-rule-helper "^2.1.1"
406+
unorm "^1.4.1"
407+
408+
textlint-rule-no-zero-width-spaces@^1.0.1:
409+
version "1.0.1"
410+
resolved "https://registry.yarnpkg.com/textlint-rule-no-zero-width-spaces/-/textlint-rule-no-zero-width-spaces-1.0.1.tgz#15a6abda05f08e483d5bb33a7034d904259d77a3"
411+
integrity sha512-AkxpzBILGB4YsXddzHx2xqpXmqMv5Yd+PQm4anUV+ADSJuwLP1Jd6yHf/LOtu9j3ps8K3XM9vQrXRK73z0bU3A==
412+
399413
textlint-rule-preset-ja-spacing@^2.1.3:
400414
version "2.1.3"
401415
resolved "https://registry.yarnpkg.com/textlint-rule-preset-ja-spacing/-/textlint-rule-preset-ja-spacing-2.1.3.tgz#773be672f9abab3aa44b9ebcd5dc3c886e26ff27"
@@ -475,6 +489,11 @@ unist-util-visit@^3.0.0:
475489
unist-util-is "^5.0.0"
476490
unist-util-visit-parents "^4.0.0"
477491

492+
unorm@^1.4.1:
493+
version "1.6.0"
494+
resolved "https://registry.yarnpkg.com/unorm/-/unorm-1.6.0.tgz#029b289661fba714f1a9af439eb51d9b16c205af"
495+
integrity sha512-b2/KCUlYZUeA7JFUuRJZPUtr4gZvBh7tavtv4fvk4+KV9pfGiR6CQAQAWl49ZpR3ts2dk4FYkP7EIgDJoiOLDA==
496+
478497
untildify@^3.0.3:
479498
version "3.0.3"
480499
resolved "https://registry.yarnpkg.com/untildify/-/untildify-3.0.3.tgz#1e7b42b140bcfd922b22e70ca1265bfe3634c7c9"

0 commit comments

Comments
 (0)