Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitdcf1955

Browse files
committed
feat(textlint): filter ruleを導入
1 parent29071e1 commitdcf1955

File tree

4 files changed

+16
-4
lines changed

4 files changed

+16
-4
lines changed

‎.textlintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"filters": {
3+
"comments": true
4+
},
25
"rules": {
36
"max-ten": {
47
"max": 3

‎README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,15 @@ Twitterのハッシュタグは[#js_plugin_book](https://twitter.com/search?f=tw
1616

1717
更新情報は[RSS](https://github.com/azu/JavaScript-Plugin-Architecture/releases.atom)[リリースノート](https://github.com/azu/JavaScript-Plugin-Architecture/releases)から見ることができます。
1818

19+
<!-- textlint-disable-->
20+
1921
<ahref="https://twitter.com/share"class="twitter-share-button"data-size="large"data-hashtags="js_plugin_book"data-dnt="true">Tweet</a>
2022
<script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0],p=/^http:/.test(d.location)?'http':'https';if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src=p+'://platform.twitter.com/widgets.js';fjs.parentNode.insertBefore(js,fjs);}}(document,'script','twitter-wjs');</script>
2123
<ahref="http://b.hatena.ne.jp/entry/https://github.com/azu/JavaScript-Plugin-Architecture"class="hatena-bookmark-button"data-hatena-bookmark-title="JavaScript Plugin Architecture"data-hatena-bookmark-layout="standard-balloon"data-hatena-bookmark-lang="ja"title="はてなブックマークに追加"><imgsrc="https://b.st-hatena.com/images/entry-button/button-only@2x.png"alt="はてなブックマークに追加"width="20"height="20"style="border:none;" /></a><scripttype="text/javascript"src="https://b.st-hatena.com/js/bookmark_button.js"charset="utf-8"async="async"></script>
2224

25+
<!-- textlint-enable-->
26+
27+
2328
##はじめに
2429

2530
JavaScriptの世界では1つの大きなライブラリよりも小さいなものを組み合わせていくようなスタイルが多く見られます。

‎coverage.textlintrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
{
2+
"filters": {
3+
"comments": true
4+
},
25
"rules": {
36
// strictオプションの有効化
47
"max-ten": {

‎package.json

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
"build":"gitbook build",
2424
"eslint":"eslint src/**/*.js",
2525
"eslint:md":"eslint -c .md.eslintrc --ext .md ja/**/*.md",
26-
"textlint":"summary-to-path | xargs textlint -f pretty-error",
26+
"textlint":"summary-to-path | xargs textlint --experimental -f pretty-error",
2727
"test:example":"find ./src -name '*-example.js' | xargs babel-node",
2828
"test:js":"mocha",
2929
"test":"npm-run-all --parallel test:js test:example textlint eslint:md eslint build",
30-
"textlint:strict":"summary-to-path | xargs textlint -c coverage.textlintrc",
31-
"textlint:coverage":"summary-to-path | xargs textlint -c coverage.textlintrc -f lcov | lcov-summary",
32-
"travis:coverage":"summary-to-path | xargs textlint -c coverage.textlintrc -f codecov | codecov"
30+
"textlint:strict":"summary-to-path | xargs textlint --experimental -c coverage.textlintrc",
31+
"textlint:coverage":"summary-to-path | xargs textlint --experimental -c coverage.textlintrc -f lcov | lcov-summary",
32+
"travis:coverage":"summary-to-path | xargs textlint --experimental -c coverage.textlintrc -f codecov | codecov"
3333
},
3434
"keywords": [
3535
"ebook",
@@ -65,6 +65,7 @@
6565
"remark":"^4.1.1",
6666
"stemming-x-keywords":"^1.0.3",
6767
"textlint":"^6.9.0",
68+
"textlint-filter-rule-comments":"^1.2.1",
6869
"textlint-formatter-codecov":"^1.0.2",
6970
"textlint-formatter-lcov":"^1.0.2",
7071
"textlint-rule-max-kanji-continuous-len":"^1.0.1",

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp