Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use textlint #79

Merged
merged 7 commits into from
Nov 25, 2017
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
remove jtf-style preset
  • Loading branch information
lacolaco committed Nov 25, 2017
commit 39b1e63933cc555534398c8b282f9cd613db1bf3
3 changes: 0 additions & 3 deletions .textlintrc
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"filters": {},
"rules": {
"preset-jtf-style": {
"4.3.5.二重引用符": false
},
"prh": {
"rulePaths" :[
"prh.yml"
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"firebase-tools": "^3.14.0",
"github-contributors-list": "^1.2.2",
"textlint": "^9.1.1",
"textlint-rule-preset-jtf-style": "^2.3.0",
"textlint-rule-prh": "^5.0.1"
}
}
60 changes: 3 additions & 57 deletions prh.yml
Original file line number Diff line number Diff line change
@@ -1,63 +1,18 @@
version: 1

imports:
- test/techbooster.yml
rules:

# 言い換え

- expected: もって
patterns:
- 持って
- 以って
- 有して

- expected: もつ
patterns:
- 有する
- 持つ

- expected: もち
patterns:
- 有し
- 持ち

- expected: あります
pattern: 存在します

- expected: 使って
pattern: 用いて

- expected: 依存性の注入
pattern: 依存性注入

- expected: 単方向
pattarn: 一方向

- expected: 双方向
pattarn: 二方向

# 漢字 <-> ひらがな

- expected: ひとつ
patterns:
- 1つ
- 一つ
prh: 通常は、ひとつ。数詞は1つ、漢数字は数えられる固有名詞を指す場合に利用します

- expected: たとえば
pattern: 例えば
prh: 漢字で書かず、ひらがなで書くと読みやすくなります

- expected: すべて
pattern: 全て
prh: 漢字で書かず、ひらがなで書くと読みやすくなります

- expected: もっとも
pattern: 最も
prh: 漢字で書かず、ひらがなで書くと読みやすくなります

- expected: さらに
pattern: 更に
prh: 漢字で書かず、ひらがなで書くと読みやすくなります
pattarn: 二方向

# カタカナ語

Expand All @@ -81,12 +36,3 @@ rules:

- expected: input要素
pattern: インプット要素

# 記号

- expected: 、
pattern: ,
prh: カンマとコンマではなく句点読点を使います。
- expected: 。
pattern: .
prh: カンマとコンマではなく句点読点を使います。
104 changes: 1 addition & 103 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -158,47 +158,6 @@ ajv@^4.7.0, ajv@^4.9.1:
co "^4.6.0"
json-stable-stringify "^1.0.1"

amp-create-callback@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amp-create-callback/-/amp-create-callback-1.0.1.tgz#51bb6f1491545d86e9bf236caff514bbb4578310"

amp-each@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amp-each/-/amp-each-1.0.1.tgz#0d6c8a33bf499c8b3de62322457c78b9eda5c00f"
dependencies:
amp-create-callback "^1.0.0"
amp-keys "^1.0.0"

amp-has@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amp-has/-/amp-has-1.0.1.tgz#dcc58a090a4c6fc4947cdb6e8c410ed9ff5202c6"

amp-index-of@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/amp-index-of/-/amp-index-of-1.1.0.tgz#d1d798ea57da552b021365b85b1e38ddf993b1c1"
dependencies:
amp-is-number "^1.0.0"

amp-is-number@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amp-is-number/-/amp-is-number-1.0.1.tgz#f430d2e65d1bbd2cc41dbd9afb7f03d3e328a314"

amp-is-object@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amp-is-object/-/amp-is-object-1.0.1.tgz#0a8cb5956b9112a16a73677e8cbad37bba247702"

amp-keys@^1.0.0:
version "1.0.1"
resolved "https://registry.yarnpkg.com/amp-keys/-/amp-keys-1.0.1.tgz#b721fb831da79881504f4eb44a39ed930a5bb129"
dependencies:
amp-has "^1.0.0"
amp-index-of "^1.0.0"
amp-is-object "^1.0.0"

analyze-desumasu-dearu@^2.1.2:
version "2.1.5"
resolved "https://registry.yarnpkg.com/analyze-desumasu-dearu/-/analyze-desumasu-dearu-2.1.5.tgz#9caa2a5a06146c20679f7dc9f3af527db6f68f41"

ansi-align@^1.1.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/ansi-align/-/ansi-align-1.1.0.tgz#2f0c1658829739add5ebb15e6b0c6e3423f016ba"
Expand Down Expand Up @@ -626,10 +585,6 @@ code-point-at@^1.0.0:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77"

code-point@^1.0.1:
version "1.1.0"
resolved "https://registry.yarnpkg.com/code-point/-/code-point-1.1.0.tgz#999841f51f54ccae4a0dabbc869063234603fecd"

collapse-white-space@^1.0.2:
version "1.0.3"
resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.3.tgz#4b906f670e5a963a87b76b0e1689643341b6023c"
Expand Down Expand Up @@ -1966,10 +1921,6 @@ isurl@^1.0.0-alpha5:
has-to-string-tag-x "^1.2.0"
is-object "^1.0.1"

japanese-numerals-to-number@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/japanese-numerals-to-number/-/japanese-numerals-to-number-1.0.2.tgz#cbfcb18ca6e93a51b062f33a5e5d29d9d7693d94"

jju@^1.1.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/jju/-/jju-1.3.0.tgz#dadd9ef01924bc728b03f2f7979bdbd62f7a2aaa"
Expand All @@ -1991,10 +1942,6 @@ join-path@^1.1.1:
url-join "0.0.1"
valid-url "^1"

joyo-kanji@^0.2.1:
version "0.2.1"
resolved "https://registry.yarnpkg.com/joyo-kanji/-/joyo-kanji-0.2.1.tgz#5e2e8ea2b903ba9333f1680c66902fc9682ea592"

js-yaml@^3.2.4, js-yaml@^3.6.1, js-yaml@^3.9.1:
version "3.10.0"
resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.10.0.tgz#2e78441646bd4682e963f22b6e92823c309c62dc"
Expand Down Expand Up @@ -2277,12 +2224,6 @@ marked@~0.3.1:
version "0.3.6"
resolved "https://registry.yarnpkg.com/marked/-/marked-0.3.6.tgz#b2c6c618fccece4ef86c4fc6cb8a7cbf5aeda8d7"

match-index@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/match-index/-/match-index-1.0.1.tgz#b4b673e99ab3ac5a6af303ccf4db709812bc3f58"
dependencies:
regexp.prototype.flags "^1.1.1"

md5@^2.2.1:
version "2.2.1"
resolved "https://registry.yarnpkg.com/md5/-/md5-2.2.1.tgz#53ab38d5fe3c8891ba465329ea23fac0540126f9"
Expand Down Expand Up @@ -2386,12 +2327,6 @@ modelo@^4.2.0:
version "4.2.0"
resolved "https://registry.yarnpkg.com/modelo/-/modelo-4.2.0.tgz#3b4b420023a66ca7e32bdba16e710937e14d1b0b"

moji@^0.5.1:
version "0.5.1"
resolved "https://registry.yarnpkg.com/moji/-/moji-0.5.1.tgz#088eecd1c22c8f31a240adcf9c95e54f33eb54fb"
dependencies:
object-assign "^3.0.0"

moment@2.x.x:
version "2.19.1"
resolved "https://registry.yarnpkg.com/moment/-/moment-2.19.1.tgz#56da1a2d1cbf01d38b7e1afc31c10bcfa1929167"
Expand Down Expand Up @@ -2944,12 +2879,6 @@ readline2@^1.0.1:
is-fullwidth-code-point "^1.0.0"
mute-stream "0.0.5"

regexp.prototype.flags@^1.1.1:
version "1.2.0"
resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.2.0.tgz#6b30724e306a27833eeb171b66ac8890ba37e41c"
dependencies:
define-properties "^1.1.2"

registry-auth-token@^3.0.1:
version "3.3.1"
resolved "https://registry.yarnpkg.com/registry-auth-token/-/registry-auth-token-3.3.1.tgz#fb0d3289ee0d9ada2cbb52af5dfe66cb070d3006"
Expand All @@ -2963,10 +2892,6 @@ registry-url@^3.0.0, registry-url@^3.0.3:
dependencies:
rc "^1.0.1"

regx@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/regx/-/regx-1.0.4.tgz#a0ee32c308910902019ca1117ed41b9ddd041b2f"

remark-parse@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-3.0.1.tgz#1b9f841a44d8f4fbf2246850265459a4eb354c80"
Expand Down Expand Up @@ -3265,19 +3190,6 @@ sntp@2.x.x:
dependencies:
hoek "4.x.x"

sorted-array@^2.0.1:
version "2.0.1"
resolved "https://registry.yarnpkg.com/sorted-array/-/sorted-array-2.0.1.tgz#a93d5a71f94f0d115a1bb55b26d37582b438bdcc"

sorted-joyo-kanji@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/sorted-joyo-kanji/-/sorted-joyo-kanji-0.2.0.tgz#34ae6bbaf0ee0a5e9165b2a4eeb51e2ab23e185c"
dependencies:
amp-each "^1.0.1"
code-point "^1.0.1"
joyo-kanji "^0.2.1"
sorted-array "^2.0.1"

spdx-correct@~1.0.0:
version "1.0.2"
resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40"
Expand Down Expand Up @@ -3574,21 +3486,7 @@ textlint-rule-helper@^2.0.0:
dependencies:
unist-util-visit "^1.1.0"

textlint-rule-preset-jtf-style@^2.3.0:
version "2.3.0"
resolved "https://registry.yarnpkg.com/textlint-rule-preset-jtf-style/-/textlint-rule-preset-jtf-style-2.3.0.tgz#b21041afa47c277a406b72a01d4d45fd5ce26fc7"
dependencies:
analyze-desumasu-dearu "^2.1.2"
japanese-numerals-to-number "^1.0.2"
match-index "^1.0.1"
moji "^0.5.1"
regexp.prototype.flags "^1.1.1"
regx "^1.0.4"
sorted-joyo-kanji "^0.2.0"
textlint-rule-helper "^2.0.0"
textlint-rule-prh "^5.0.0"

textlint-rule-prh@^5.0.0, textlint-rule-prh@^5.0.1:
textlint-rule-prh@^5.0.1:
version "5.0.1"
resolved "https://registry.yarnpkg.com/textlint-rule-prh/-/textlint-rule-prh-5.0.1.tgz#bab66be6b03258880f3fbf466b689ed2ff379b0c"
dependencies:
Expand Down