From 254fbd2d8df061a89978f0ba58a745f8a27e7da0 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Fri, 5 Jul 2019 23:30:10 +0900 Subject: [PATCH 01/10] Update Japanese document for da127f2 --- docs/README-ja.md | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/docs/README-ja.md b/docs/README-ja.md index 0cbd782ad..c5026a93b 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -26,11 +26,6 @@ 繁體中文 (Taiwanese Mandarin)

-

- Sponsored by - -

- ## JavaScript スタイルガイド、リンター、フォーマッター このモジュールは、3つの方法であなたの(そして他の人の!)時間を節約します。: @@ -49,7 +44,7 @@ npm install standard --save-dev ### オープンソースサポーター - +[Become a supporter!](https://feross.org/thanks/) ## StandardJS — ルール From 969d90b6feaae1bc359be8ca4611e101050aaf18 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Fri, 5 Jul 2019 23:31:09 +0900 Subject: [PATCH 02/10] Update Japanese document for dc0ae5e --- docs/README-ja.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/docs/README-ja.md b/docs/README-ja.md index c5026a93b..761bf34e0 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -44,6 +44,8 @@ npm install standard --save-dev ### オープンソースサポーター + + [Become a supporter!](https://feross.org/thanks/) ## StandardJS — ルール From 9c02b307941989cb3b5680c8b70c0fe3e063d7b8 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Fri, 5 Jul 2019 23:37:00 +0900 Subject: [PATCH 03/10] Update Japanese document for 4ac2ccc --- docs/README-ja.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/README-ja.md b/docs/README-ja.md index 761bf34e0..708a9bb49 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -94,12 +94,12 @@ npm install standard --save-dev - [実験的なJavaScriptの機能(ES Next)を使用するには?](#how-do-i-use-experimental-javascript-es-next-features) - [FlowやTypeScriptのようなJavaScriptの代替言語を使用できますか?](#can-i-use-a-javascript-language-variant-like-flow-or-typescript) - [Mocha、Jasmine、QUnitなどはどうすれば?](#what-about-mocha-jasmine-qunit-etc) - - [Web WorkersとService Workersはどうすれば?](#what-about-web-workers) + - [Web WorkersとService Workersはどうすれば?](#what-about-web-workers-and-service-workers) - [MarkdownやHTMLファイル内のコードをチェックできますか?](#can-i-check-code-inside-of-markdown-or-html-files) - [Gitの`pre-commit`フックはありますか?](#is-there-a-git-pre-commit-hook) - [出力をすべてカラフルで綺麗にするには?](#how-do-i-make-the-output-all-colorful-and-pretty) - [Node.jsのAPIはありますか?](#is-there-a-nodejs-api) - - [`standard`にコントリビュートするには?](#how-do-i-contribute-to-standard) + - [StandardJSにコントリビュートするには?](#how-do-i-contribute-to-standardjs) - [ライセンス](#license)

インストール

@@ -533,7 +533,7 @@ $ standard --env mocha *注: `env`と`envs`は同じです。* -

Web WorkersとService Workersはどうすれば?

+

Web WorkersとService Workersはどうすれば?

次のコメントをweb workerファイルの先頭に追加してください。: @@ -681,7 +681,7 @@ var opts = { `callback`は、`Error`オブジェクトと`results`オブジェクトを引数として実行されます(上記と同じ)。 -

standardにコントリビュートするには?

+

StandardJSにコントリビュートするには?

コントリビューションは歓迎されます![Issues](https://github.com/standard/standard/issues)や[Pull Requests](https://github.com/standard/standard/pulls)をチェックし、望みのものがなければ作成してください。 From 576db8d5dd70bd3da8d3c2d9179838a1711b759e Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Fri, 5 Jul 2019 23:45:52 +0900 Subject: [PATCH 04/10] Update Japanese document for 44877f8 --- docs/README-ja.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/README-ja.md b/docs/README-ja.md index 708a9bb49..2f8e8b248 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -311,6 +311,10 @@ WebStormでは、IDEで`standard`が[ネイティブサポートされるよう いいえ。`standard`のすべては、スタイルについての[bikeshedding][bikeshedding](自転車置き場の議論)を避けることであなたの時間をセーブするためにあります。タブ対スペースについてのような議論はオンライン上にたくさんありますが、決して結論は出ません。これらの議論はただ物事を終わらせることから目を逸らさせるだけです。結局のところ、あなたは何かを選ばなければばなりません。これは、`standard`の哲学のすべてです。うまくいけば、ユーザーは自身の意見を守るうえでその価値に気づくでしょう。 +`standard`を完全には受け入れたくない人のために、似たようなパッケージが2つあります: +- [semistandard](https://github.com/Flet/semistandard) - セミコロンありのstandard +- [standardx](https://github.com/standard/standardx) - カスタマイズ可能なstandard + 本当に何百ものESLintのルールを個別に設定したいなら、ルールを上書きするために[eslint-config-standard](https://github.com/standard/eslint-config-standard)で`eslint`を直接使うことができます。[`standard-eject`](https://github.com/josephfrazier/standard-eject)は、`standard`から`eslint`と`eslint-config-standard`への移行を支援します。 Pro tip: ただ`standard`を使っていってください。時間をかけて解決すべき現実の問題があるでしょう! :P From 8c1339dfba14e9d4f66333591320c30bafdb03e2 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Fri, 5 Jul 2019 23:48:17 +0900 Subject: [PATCH 05/10] Update Japanese document for 87c6e99 --- docs/README-ja.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README-ja.md b/docs/README-ja.md index 2f8e8b248..c638cb4ae 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -199,7 +199,7 @@ ESLint"](https://www.youtube.com/watch?v=kuHfMw8j4xk)をご覧ください。こ [](https://nodesource.com) | [](https://greenkeeper.io) | [](https://karma-runner.github.io) | [](https://www.taser.com) | [](https://www.neo4j.com) | |---|---|---|---|---| -[](https://rentograph.com) | [](https://www.eaze.com) | [](https://www.ctrlaltdeseat.com) | [](https://clevertech.biz) | | +[](https://rentograph.com) | [](https://www.eaze.com) | [](https://www.ctrlaltdeseat.com) | [](https://clevertech.biz) | [](https://www.flowsent.com) | |---|---|---|---|---| 企業に加えて、多くのコミュニティメンバーがここに載せるには[多すぎる](https://raw.githubusercontent.com/standard/standard-packages/master/all.json)パッケージで`standard`を使用しています。 From 9c5bc89eb65bede2895e7a102e8397d875a34b32 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 6 Jul 2019 00:01:52 +0900 Subject: [PATCH 06/10] Update Japanese document for d591993 --- docs/README-ja.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/README-ja.md b/docs/README-ja.md index c638cb4ae..1064cb68b 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -488,16 +488,16 @@ $ standard --parser babel-eslint --plugin flowtype ### TypeScript -TypeScriptを使用するには、`typescript-eslint-parser`をパーサとして、`eslint-plugin-typescript`をプラグインとして`standard`を実行し、`*.ts`ファイルをリントするようにstandardに伝える必要があります(デフォルトではリントされないため)。 +TypeScriptを使用するには、`@typescript-eslint/parser`をパーサとして、`eslint-plugin-typescript`をプラグインとして`standard`を実行し、`*.ts`ファイルをリントするようにstandardに伝える必要があります(デフォルトではリントされないため)。 ```bash -npm install typescript-eslint-parser eslint-plugin-typescript --save-dev +npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-dev ``` そして、次のコマンドを実行します。: ```bash -$ standard --parser typescript-eslint-parser --plugin typescript *.ts +$ standard --parser @typescript-eslint/parser --plugin typescript *.ts ``` あるいは、次の内容を`package.json`に追加してください。: @@ -505,8 +505,8 @@ $ standard --parser typescript-eslint-parser --plugin typescript *.ts ```json { "standard": { - "parser": "typescript-eslint-parser", - "plugins": [ "typescript" ] + "parser": "@typescript-eslint/parser", + "plugins": [ "@typescript-eslint/eslint-plugin" ] } } ``` @@ -517,7 +517,7 @@ $ standard --parser typescript-eslint-parser --plugin typescript *.ts standard *.ts ``` -もし`standard`がグローバルインストールされている場合(つまり`npm install standard --global`)、`npm install typescript-eslint-parser eslint-plugin-typescript --global`で`typescript-eslint-parser`と`eslint-plugin-typescript`もグローバルインストールしてください。 +もし`standard`がグローバルインストールされている場合(つまり`npm install standard --global`)、`npm install @typescript-eslint/parser eslint-plugin-typescript --global`で`@typescript-eslint/parser`と`eslint-plugin-typescript`もグローバルインストールしてください。

Mocha、Jasmine、QUnitなどはどうすれば?

From 915eae68fcfd9faaaefb9c53b6c37719f7a2f525 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 6 Jul 2019 00:05:13 +0900 Subject: [PATCH 07/10] Update Japanese document for 38eb535 --- docs/README-ja.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/docs/README-ja.md b/docs/README-ja.md index 1064cb68b..4be9fb369 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -128,6 +128,12 @@ Error: Use JavaScript Standard Style lib/torrent.js:950:11: Expected '===' and instead saw '=='. ``` +`standard`をローカルにインストールした場合は、かわりに`npx`で実行します。: + +```bash +$ npx standard +``` + globパターンを用いてディレクトリを渡すこともできます。globパターンを含むパスは、シェルではなく`standard`で展開されるようにクォートで囲んでください。: ```bash From 7e723ff94f52c4c7ac6f4c8a8d7725e300b0d496 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 6 Jul 2019 00:07:13 +0900 Subject: [PATCH 08/10] Update Japanese document for 6326ad2 --- docs/README-ja.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README-ja.md b/docs/README-ja.md index 4be9fb369..9229d8336 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -503,7 +503,7 @@ npm install @typescript-eslint/parser @typescript-eslint/eslint-plugin --save-de そして、次のコマンドを実行します。: ```bash -$ standard --parser @typescript-eslint/parser --plugin typescript *.ts +$ standard --parser @typescript-eslint/parser --plugin @typescript-eslint/eslint-plugin *.ts ``` あるいは、次の内容を`package.json`に追加してください。: From 13ffec86f1a84f3258cd648090ccb0af894f3f29 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 6 Jul 2019 00:12:13 +0900 Subject: [PATCH 09/10] Update Japanese document for 3afee69 --- docs/README-ja.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/README-ja.md b/docs/README-ja.md index 9229d8336..1bdfa8989 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -93,7 +93,7 @@ npm install standard --save-dev - [私はグローバル名前空間を汚染するライブラリを使用しています。"variable is not defined"というエラーを防ぐには?](#i-use-a-library-that-pollutes-the-global-namespace-how-do-i-prevent-variable-is-not-defined-errors) - [実験的なJavaScriptの機能(ES Next)を使用するには?](#how-do-i-use-experimental-javascript-es-next-features) - [FlowやTypeScriptのようなJavaScriptの代替言語を使用できますか?](#can-i-use-a-javascript-language-variant-like-flow-or-typescript) - - [Mocha、Jasmine、QUnitなどはどうすれば?](#what-about-mocha-jasmine-qunit-etc) + - [Mocha、Jest、Jasmine、QUnitなどはどうすれば?](#what-about-mocha-jest-jasmine-qunit-etc) - [Web WorkersとService Workersはどうすれば?](#what-about-web-workers-and-service-workers) - [MarkdownやHTMLファイル内のコードをチェックできますか?](#can-i-check-code-inside-of-markdown-or-html-files) - [Gitの`pre-commit`フックはありますか?](#is-there-a-git-pre-commit-hook) @@ -525,7 +525,7 @@ standard *.ts もし`standard`がグローバルインストールされている場合(つまり`npm install standard --global`)、`npm install @typescript-eslint/parser eslint-plugin-typescript --global`で`@typescript-eslint/parser`と`eslint-plugin-typescript`もグローバルインストールしてください。 -

Mocha、Jasmine、QUnitなどはどうすれば?

+

Mocha、Jest、Jasmine、QUnitなどはどうすれば?

テストファイルでmochaをサポートするには、次のコメントをテストファイルの先頭に追加します。: @@ -539,7 +539,7 @@ standard *.ts $ standard --env mocha ``` -`mocha`は`jasmine`、`qunit`、`phantomjs`などのいずれかになります。完全なリストを見るには、ESLintの[specifying environments](http://eslint.org/docs/user-guide/configuring.html#specifying-environments)を参照してください。これらの環境で使用可能なグローバルオブジェクトのリストについては、[globals](https://github.com/sindresorhus/globals/blob/master/globals.json)のnpm moduleを参照してください。 +`mocha`は`jasmine`、`jest`、`qunit`、`phantomjs`などのいずれかになります。完全なリストを見るには、ESLintの[specifying environments](http://eslint.org/docs/user-guide/configuring.html#specifying-environments)を参照してください。これらの環境で使用可能なグローバルオブジェクトのリストについては、[globals](https://github.com/sindresorhus/globals/blob/master/globals.json)のnpm moduleを参照してください。 *注: `env`と`envs`は同じです。* From 0cfc9327fc5af4c79fa6735153e31e183a96f6b8 Mon Sep 17 00:00:00 2001 From: Munieru <20086673+munierujp@users.noreply.github.com> Date: Sat, 6 Jul 2019 00:13:08 +0900 Subject: [PATCH 10/10] Update Japanese document for 40d1d5e --- docs/README-ja.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/README-ja.md b/docs/README-ja.md index 1bdfa8989..b7bcd9cd9 100644 --- a/docs/README-ja.md +++ b/docs/README-ja.md @@ -539,7 +539,7 @@ standard *.ts $ standard --env mocha ``` -`mocha`は`jasmine`、`jest`、`qunit`、`phantomjs`などのいずれかになります。完全なリストを見るには、ESLintの[specifying environments](http://eslint.org/docs/user-guide/configuring.html#specifying-environments)を参照してください。これらの環境で使用可能なグローバルオブジェクトのリストについては、[globals](https://github.com/sindresorhus/globals/blob/master/globals.json)のnpm moduleを参照してください。 +`mocha`は`jest`、`jasmine`、`qunit`、`phantomjs`などのいずれかになります。完全なリストを見るには、ESLintの[specifying environments](http://eslint.org/docs/user-guide/configuring.html#specifying-environments)を参照してください。これらの環境で使用可能なグローバルオブジェクトのリストについては、[globals](https://github.com/sindresorhus/globals/blob/master/globals.json)のnpm moduleを参照してください。 *注: `env`と`envs`は同じです。*