Skip to content

Commit

Permalink
chore(deps): update textlint
Browse files Browse the repository at this point in the history
  • Loading branch information
azu committed Jan 26, 2023
1 parent 45dfd89 commit b82b97d
Show file tree
Hide file tree
Showing 5 changed files with 589 additions and 466 deletions.
8 changes: 4 additions & 4 deletions Ch1_WhatsPromises/what-is-promise.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -75,15 +75,15 @@ Arrow Functionは、矢印のような `=>` (イコールと大なり記号)
[source,javascript]
----
// 関数式の定義と実行
const fn = function (arg) {
console.log("通常の関数定義, 引数:" + arg)
}
const fn = function(arg) {
console.log("通常の関数定義, 引数:" + arg);
};
fn("引数");
// Arrow Functionの定義と実行
const arrowFunction = (arg) => {
console.log("Arrow Functionでの関数定義, 引数:" + arg);
}
};
arrowFunction("引数");
----
Expand Down
6 changes: 3 additions & 3 deletions Ch1_WhatsPromises/writing-promises.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ resolveされたことにより _promiseオブジェクトがFulfilledの状態
[source,javascript]
----
const URL = "https://httpbin.org/get";
fetchURL(URL).then(function onFulfilled(value){ // <1>
fetchURL(URL).then((value) => { // <1>
console.log(value);
});
----
Expand All @@ -112,9 +112,9 @@ rejectされたことより _promiseオブジェクトがRejectedの状態にな
[source,javascript]
----
const URL = "https://httpbin.org/status/500"; // <1>
fetchURL(URL).then(function onFulfilled(value){
fetchURL(URL).then((value) => {
console.log(value);
}).catch(function onRejected(error){ // <2>
}).catch((error) => { // <2>
console.error(error);
});
----
Expand Down
6 changes: 3 additions & 3 deletions Ch4_AdvancedPromises/race-delay-timeout.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -260,9 +260,9 @@ Fetch APIでは、次のようにリクエストをキャンセルできます
.AbortControllerでのFetchのキャンセル
----
// AbortControllerのインスタンスの作成
const controller = new AbortController()
const controller = new AbortController();
// キャンセルを通知するための siganl を取得する
const signal = controller.signal
const signal = controller.signal;
// signal をfetchメソッドの第二引数に渡す
fetch("https://httpbin.org/get", { signal })
.then((result) => {
Expand All @@ -277,7 +277,7 @@ fetch("https://httpbin.org/get", { signal })
}
// 中断以外のエラー
console.error(err);
})
});
// Fetchをキャンセルする
controller.abort();
----
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@
"brfs": "^2.0.2",
"browserify": "^16.5.0",
"cheerio": "^0.22.0",
"eslint": "^6.5.1",
"eslint": "^8.32.0",
"espower-loader": "^1.0.0",
"esprima": "^4.0.1",
"fs-extra": "^8.1.0",
Expand All @@ -67,9 +67,9 @@
"rel-to-abs": "^0.1.0",
"sinon": "^1.9.0",
"sudachi-synonyms-dictionary": "^4.1.0",
"textlint": "^12.0.0",
"textlint": "^12.6.1",
"textlint-plugin-asciidoctor": "^1.0.3",
"textlint-rule-eslint": "3.2.1",
"textlint-rule-eslint": "4.0.1",
"textlint-rule-prh": "^5.2.1",
"through2": "^3.0.1",
"vinyl-source-stream": "^2.0.0",
Expand Down
Loading

0 comments on commit b82b97d

Please sign in to comment.