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

fix(textlint): add [email protected] #128

Merged
merged 1 commit into from
Mar 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
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
1 change: 1 addition & 0 deletions .textlintrc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"max-ten": {
"max": 3
},
"ja-no-redundant-expression": true,
"ja-no-successive-word": true,
"ja-no-abusage": true,
"no-nfd": true,
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@

![coverage graph](https://codecov.io/github/azu/JavaScript-Plugin-Architecture/branch.svg?branch=master)

現在の文章カバレッジは次のコマンドでも確認することができます
現在の文章カバレッジは次のコマンドでも確認できます

```
npm run textlint:coverage
Expand Down
4 changes: 2 additions & 2 deletions ja/ESLint/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ console.log("Hello!");

- [JavaScript AST explorer](http://felix-kling.de/esprima_ast_explorer/#/FNrLHi8ngW "JavaScript AST explorer")

ESLintではこのASTを使って、[no-console.js](#no-console.js)のように`console.log`などがコードに残ってないかなどをルールを元にチェックすることができます
ESLintではこのASTを使って、[no-console.js](#no-console.js)のように`console.log`などがコードに残ってないかなどをルールを元にチェックできます

ルールをどう書けるかという話に戻すと、`context`というオブジェクトはただのユーティリティ関数と考えて問題ありません。
ルールの本体は関数が`return`してるメソッドをもったオブジェクトです。
Expand Down Expand Up @@ -271,7 +271,7 @@ ESLintのように与えられたコードを読み取ってチェックする
## エコシステム

ESLintのルールはただのJavaScriptモジュールなので、
ルール自体を[npm](https://www.npmjs.com/ "npm")で公開することができます
ルール自体を[npm](https://www.npmjs.com/ "npm")で公開できます

また、ESLintはデフォルトで有効なルールはありません。
そのため、利用する際は設定ファイルを作るか、[sindresorhus/xo](https://github.com/sindresorhus/xo "sindresorhus/xo")といったESLintのラッパーを利用する形となります。
Expand Down
2 changes: 1 addition & 1 deletion ja/Redux/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ const middleware = store => next => action => {};
```

上記のArrowFunctionの連なりが一見すると何をしているのかが分かりにくいですが、
これは次のように展開することができます
これは次のように展開できます

```js
const middleware = (store) => {
Expand Down
4 changes: 2 additions & 2 deletions ja/gulp/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
4. CSSファイルをそれぞれ`minify`で圧縮する
5. 圧縮したCSSファイルをそれぞれ`css`ディレクトリに出力する

この一連の処理は次のようなタスクとして定義することができます
この一連の処理は次のようなタスクとして定義できます

```js
import gulp from "gulp";
Expand Down Expand Up @@ -54,7 +54,7 @@ gulp.task("sass", function() {
それぞれの処理がどのように実装されているかはよく分かりませんでした。

ここでは`gulp-prefixer`というgulpプラグインを書いていきます。
`gulp-prefixer`は与えられたそれぞれのファイルに対して先頭に特定の文字列の追加を行うプラグインです
`gulp-prefixer`は与えられたそれぞれのファイルに対して先頭に特定の文字列の追加するプラグインです
Copy link
Owner Author

@azu azu Mar 3, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

文字列の追加を行う -> 文字列を追加する

追加で修正した fd0a6b8


同様の名前のプラグインが公式のドキュメントで「プラグインの書き方」の例として紹介されているので合わせて見るとよいでしょう。

Expand Down
4 changes: 2 additions & 2 deletions ja/jQuery/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

> この文章は[jQuery](http://jquery.com/ "jQuery") 2.1.4を元に書かれています。

jQueryでは`$.fn`を拡張することで、`$()`の返り値となるjQueryオブジェクトにメソッドを追加することができます
jQueryでは`$.fn`を拡張することで、`$()`の返り値となるjQueryオブジェクトにメソッドを追加できます

次の`greenify`プラグインでは、`$(document.body).greenify();`というメソッド呼び出しが可能になります。

Expand Down Expand Up @@ -44,7 +44,7 @@ $(document.body); // 返り値はjQueryのインスタンス
jQueryプラグインの仕組みがわかったのでどのような用途に有効な仕組みなのか考えてみましょう。

単純なprototype拡張なので、利点はJavaScriptのprototypeと同様です。
動的にメソッドを追加するだけではなく、既存の実装を上書きするmonkey patchのようなものもプラグインとして追加することができます
動的にメソッドを追加するだけではなく、既存の実装を上書きするmonkey patchのようなものもプラグインとして追加できます

## どのような用途に向いていない?

Expand Down
Loading