From 9179b85bf10b6e240003fa8ac04123a92bdbb805 Mon Sep 17 00:00:00 2001 From: Artem Sapegin Date: Fri, 21 Jun 2024 11:24:16 +0200 Subject: [PATCH] Update Textlint rules --- manuscript/070_Naming_is_hard.md | 2 +- manuscript/120_Linting.md | 2 +- manuscript/150_Editing.md | 2 +- package-lock.json | 14 +++++++------- package.json | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/manuscript/070_Naming_is_hard.md b/manuscript/070_Naming_is_hard.md index 9e7e0ad..7dc6c2f 100644 --- a/manuscript/070_Naming_is_hard.md +++ b/manuscript/070_Naming_is_hard.md @@ -1505,7 +1505,7 @@ One thing that developers often disagree on is how to spell acronyms (for exampl - Do something weird: `XMLHttpRequest`, `DatePickerIOS`, `HTMLHRElement`; - Normalize the words: `WebIos`, `HtmlHrElement`. -Unfortunately, the most readable approach, normalization, seems to be the least popular. Since we can’t use spaces in names, it can be hard to separate words: `WebiOS` could be read as “webi os” instead of “web ios”, and it takes extra time to read it right. Such names also don’t work well with code spell checkers: they mark “webi” and “htmlhr” as incorrect words. +Unfortunately, the most readable approach, normalization, seems to be the least popular. Since we can’t use spaces in names, it can be hard to separate words: `WebiOS` could be read as `webi os` instead of `web ios`, and it takes extra time to read it right. Such names also don’t work well with code spell checkers: they mark `webi` and `htmlhr` as incorrect words. diff --git a/manuscript/120_Linting.md b/manuscript/120_Linting.md index 3bba504..8d731f6 100644 --- a/manuscript/120_Linting.md +++ b/manuscript/120_Linting.md @@ -673,7 +673,7 @@ export default tseslint.config({ Here, we allow only [@ts-expect-error](https://typescript-eslint.io/rules/prefer-ts-expect-error/) comments and require an explanation for each of them. -Then we can write something like this, and it won’t trigger a lint error: +Then we can write something like this, and it won’t trigger a linting error: diff --git a/manuscript/150_Editing.md b/manuscript/150_Editing.md index b38bc39..f18b191 100644 --- a/manuscript/150_Editing.md +++ b/manuscript/150_Editing.md @@ -93,7 +93,7 @@ The **fuzzy file opener** is one of my favorite tools. I use it all the time to ![Fuzzy file opener in Visual Studio Code](images/fuzzy-file-opener.png) -TODO: search (regexps?) +TODO: search (regular expressions?) {#spell-checking} diff --git a/package-lock.json b/package-lock.json index 87c767a..8bfa87a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -44,7 +44,7 @@ "textlint-rule-no-todo": "^2.0.1", "textlint-rule-quotes": "^1.0.0", "textlint-rule-stop-words": "^5.0.7", - "textlint-rule-terminology": "^5.0.13", + "textlint-rule-terminology": "^5.0.15", "textlint-rule-write-good": "^2.0.0", "unist-util-visit": "^5.0.0", "vitest": "^1.6.0", @@ -18884,9 +18884,9 @@ } }, "node_modules/textlint-rule-terminology": { - "version": "5.0.13", - "resolved": "https://registry.npmjs.org/textlint-rule-terminology/-/textlint-rule-terminology-5.0.13.tgz", - "integrity": "sha512-1LONlbrn0fRhz/eCWPrnrxc5nz07NDjLLa4yiPm/hMtn/4Gi11R0lHbVgl+Ux6l8NC/a/NS5f6zQkJqqWy5bMw==", + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/textlint-rule-terminology/-/textlint-rule-terminology-5.0.15.tgz", + "integrity": "sha512-mdcKh7LVMUPlUbGeCai/PUwUVH5ZfutpbN/KuUBmCle55vhUDSKTeiSJFoN82TpSt/Y3F54pkje+jgqLA38JBA==", "dev": true, "dependencies": { "lodash": "^4.17.15", @@ -35079,9 +35079,9 @@ } }, "textlint-rule-terminology": { - "version": "5.0.13", - "resolved": "https://registry.npmjs.org/textlint-rule-terminology/-/textlint-rule-terminology-5.0.13.tgz", - "integrity": "sha512-1LONlbrn0fRhz/eCWPrnrxc5nz07NDjLLa4yiPm/hMtn/4Gi11R0lHbVgl+Ux6l8NC/a/NS5f6zQkJqqWy5bMw==", + "version": "5.0.15", + "resolved": "https://registry.npmjs.org/textlint-rule-terminology/-/textlint-rule-terminology-5.0.15.tgz", + "integrity": "sha512-mdcKh7LVMUPlUbGeCai/PUwUVH5ZfutpbN/KuUBmCle55vhUDSKTeiSJFoN82TpSt/Y3F54pkje+jgqLA38JBA==", "dev": true, "requires": { "lodash": "^4.17.15", diff --git a/package.json b/package.json index 613fdfd..418bf23 100644 --- a/package.json +++ b/package.json @@ -65,7 +65,7 @@ "textlint-rule-no-todo": "^2.0.1", "textlint-rule-quotes": "^1.0.0", "textlint-rule-stop-words": "^5.0.7", - "textlint-rule-terminology": "^5.0.13", + "textlint-rule-terminology": "^5.0.15", "textlint-rule-write-good": "^2.0.0", "unist-util-visit": "^5.0.0", "vitest": "^1.6.0",