Skip to content

Commit 27cafec

Browse files
committed
fix: Enable remark-lint-no-trailing-spaces
1 parent cf0873f commit 27cafec

20 files changed

+97
-112
lines changed

Diff for: .editorconfig

-3
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,5 @@ end_of_line = lf
99
insert_final_newline = true
1010
trim_trailing_whitespace = true
1111

12-
[*.md]
13-
trim_trailing_whitespace = false
14-
1512
[*.svg]
1613
insert_final_newline = false

Diff for: .remarkrc

-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
["remark-lint-maximum-line-length", false],
99
["remark-lint-no-file-name-articles", false],
1010
["remark-lint-no-literal-urls", false],
11-
["remark-lint-no-trailing-spaces", false],
1211
["remark-lint-no-undefined-references", false],
1312
["remark-lint-prohibited-strings", false],
1413
["remark-preset-lint-node/remark-lint-nodejs-links", false]

Diff for: TRANSLATION.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ Original source can be found in [/locale/en](https://github.com/nodejs/nodejs.or
1717

1818
### Can't find my locale on Crowdin
1919

20-
Please create a [new issue](https://github.com/nodejs/nodejs.org/issues/new?template=03-i18n.md) in this repo. Crowdin managers team would be happy to add new languages.
20+
Please create a [new issue](https://github.com/nodejs/nodejs.org/issues/new?template=03-i18n.md) in this repo. Crowdin managers team would be happy to add new languages.
2121

2222
## Localization groups
2323

Diff for: locale/en/black-lives-matter.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,9 @@ layout: black-lives-matter.hbs
9191
* William Green
9292
* Willie McCoy
9393
* Yassin Mohamed
94-
* …[and](https://mappingpoliceviolence.org/) [countless](https://twitter.com/samswey/status/1259254114606886913)
95-
[more](https://en.wikipedia.org/wiki/Lists_of_killings_by_law_enforcement_officers_in_the_United_States#Lists_of_killings)
96-
[lives](https://ebwiki.org/)
94+
* …[and](https://mappingpoliceviolence.org/) [countless](https://twitter.com/samswey/status/1259254114606886913)
95+
[more](https://en.wikipedia.org/wiki/Lists_of_killings_by_law_enforcement_officers_in_the_United_States#Lists_of_killings)
96+
[lives](https://ebwiki.org/)
9797
not listed here, taken by violence and brutality.
9898

9999
</section>

Diff for: locale/en/blog/release/v14.15.2.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ author: Bethany Nicolle Griggs
1010

1111
### Notable Changes
1212

13-
* **deps**:
13+
* **deps**:
1414
* upgrade npm to 6.14.9 (Myles Borins) [#36450](https://github.com/nodejs/node/pull/36450)
1515
* update acorn to v8.0.4 (Michaël Zasso) [#35791](https://github.com/nodejs/node/pull/35791)
1616
* **doc**: add release key for Danielle Adams (Danielle Adams) [#35545](https://github.com/nodejs/node/pull/35545)

Diff for: locale/en/blog/vulnerability/april-2020-openssl-updates.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ is "HIGH" severity under their
3737
meaning they are:
3838

3939
> ... issues that are of a lower risk than critical, perhaps due to affecting
40-
> less common configurations, or which are less likely to be exploitable.
40+
> less common configurations, or which are less likely to be exploitable.
4141
4242
All supported versions of Node.js use OpenSSL v1.1.1, therefore all active
4343
release lines are impacted by this update: v10.x, v12.x, v13.x, and v14.x (

Diff for: locale/en/blog/vulnerability/february-2021-security-releases.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ Thank you to OMICRON electronics for reporting this vulnerability.
2222

2323
### DNS rebinding in --inspect (CVE-2021-22884)
2424

25-
Affected Node.js versions are vulnerable to a DNS rebinding attack when the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS, i.e., over network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.
25+
Affected Node.js versions are vulnerable to a DNS rebinding attack when the whitelist includes “localhost6”. When “localhost6” is not present in /etc/hosts, it is just an ordinary domain that is resolved via DNS, i.e., over network. If the attacker controls the victim's DNS server or can spoof its responses, the DNS rebinding protection can be bypassed by using the “localhost6” domain. As long as the attacker uses the “localhost6” domain, they can still apply the attack described in CVE-2018-7160.
2626

2727
Impacts:
2828
* All versions of the 15.x, 14.x, 12.x and 10.x releases lines

Diff for: locale/en/download/package-manager.md

+2-3
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@ pkgin -y install nodejs
207207

208208
## Nodenv
209209

210-
`nodenv` is a lightweight node version manager, similar to `nvm`. It's simple and predictable. A rich plugin ecosystem lets you tailor it to suit your needs. Use `nodenv` to pick a Node version for your application and guarantee that your development environment matches production.
210+
`nodenv` is a lightweight node version manager, similar to `nvm`. It's simple and predictable. A rich plugin ecosystem lets you tailor it to suit your needs. Use `nodenv` to pick a Node version for your application and guarantee that your development environment matches production.
211211

212212
Nodenv installation instructions are maintained [on its Github page](https://github.com/nodenv/nodenv#installation). Please visit that page to ensure you're following the latest version of the installation steps.
213213

@@ -301,7 +301,7 @@ pkg_add node
301301

302302
Node.js is available in the main repositories under the following packages:
303303

304-
* **openSUSE Leap 15.2**: `nodejs10`, `nodejs12`, `nodejs14`
304+
* **openSUSE Leap 15.2**: `nodejs10`, `nodejs12`, `nodejs14`
305305
* **openSUSE Tumbleweed**: `nodejs16`
306306
* **SUSE Linux Enterprise Server (SLES) 12**: `nodejs10`, `nodejs12`, and `nodejs14`
307307
(The "Web and Scripting Module" must be [enabled](https://www.suse.com/releasenotes/x86_64/SUSE-SLES/12-SP5/#intro-modulesExtensionsRelated).)
@@ -376,4 +376,3 @@ IBM&reg; SDK for Node.js - z/OS&reg; is available in two installation formats,
376376
SMP/E and PAX. Select the installation format that applies to you:
377377
* [Installing and configuring SMP/E edition of Node.js on z/OS](https://www.ibm.com/support/knowledgecenter/SSTRRS_14.0.0/com.ibm.nodejs.zos.v14.doc/smpe.htm)
378378
* [Installing and configuring PAX edition of Node.js on z/OS](https://www.ibm.com/support/knowledgecenter/SSTRRS_14.0.0/com.ibm.nodejs.zos.v14.doc/paxz.htm)
379-

Diff for: locale/es/docs/guides/buffer-constructor-deprecation.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ _Note that the same applies to `new Buffer()` usage without zero-filling, depend
173173

174174
## FAQ
175175

176-
### <!--design-flaws-->What is wrong with the
177-
178-
`Buffer` constructor?
176+
### <!--design-flaws-->What is wrong with the `Buffer` constructor?
179177

180178
The `Buffer` constructor could be used to create a buffer in many different ways:
181179

@@ -213,8 +211,6 @@ Both of these scenarios are considered serious security issues in a real-world w
213211

214212
When using `Buffer.from(req.body.string)` instead, passing a number will always throw an exception instead, giving a controlled behavior that can always be handled by the program.
215213

216-
### <!--ecosystem-usage-->The
217-
218-
`Buffer()` constructor has been deprecated for a while. Is this really an issue?
214+
### <!--ecosystem-usage-->The `Buffer()` constructor has been deprecated for a while. Is this really an issue?
219215

220216
Surveys of code in the `npm` ecosystem have shown that the `Buffer()` constructor is still widely used. This includes new code, and overall usage of such code has actually been *increasing*.

Diff for: locale/fr/docs/guides/buffer-constructor-deprecation.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ _Note that the same applies to `new Buffer()` usage without zero-filling, depend
173173

174174
## FAQ
175175

176-
### <!--design-flaws-->What is wrong with the
177-
178-
`Buffer` constructor?
176+
### <!--design-flaws-->What is wrong with the `Buffer` constructor?
179177

180178
The `Buffer` constructor could be used to create a buffer in many different ways:
181179

@@ -213,8 +211,6 @@ Both of these scenarios are considered serious security issues in a real-world w
213211

214212
When using `Buffer.from(req.body.string)` instead, passing a number will always throw an exception instead, giving a controlled behavior that can always be handled by the program.
215213

216-
### <!--ecosystem-usage-->The
217-
218-
`Buffer()` constructor has been deprecated for a while. Is this really an issue?
214+
### <!--ecosystem-usage-->The `Buffer()` constructor has been deprecated for a while. Is this really an issue?
219215

220216
Surveys of code in the `npm` ecosystem have shown that the `Buffer()` constructor is still widely used. This includes new code, and overall usage of such code has actually been *increasing*.

Diff for: locale/ko/docs/guides/debugging-getting-started.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ Node 인스펙터에 접속할 수 있는 여러 상용 도구와 오픈소스
208208

209209
* `Debug` 뷰에서 Node.js 디버그 설정을 실행하거나 `F5` 키를 누르세요.
210210
[자세한 방법은 여기를 참고하세요.](https://medium.com/gitpod/debugging-node-js-applications-in-theia-76c94c76f0a1)
211-
211+
212212
### [Eclipse IDE](https://eclipse.org/eclipseide)와 Eclipse Wild Web Developer 확장 프로그램
213213

214214
* .js 파일에서 "Debug As... > Node program"을 선택하거나,

Diff for: locale/pt-br/knowledge/command-line/how-to-prompt-for-command-line-input.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Como solicitar entrada do usuário a partir de um script de linha de comando?
2+
title: Como solicitar entrada do usuário a partir de um script de linha de comando?
33
date: '2011-08-26T10:08:50.000Z'
44
tags:
55
- javascript

Diff for: locale/ro/docs/guides/buffer-constructor-deprecation.md

+2-6
Original file line numberDiff line numberDiff line change
@@ -173,9 +173,7 @@ _Note that the same applies to `new Buffer()` usage without zero-filling, depend
173173

174174
## FAQ
175175

176-
### <!--design-flaws-->What is wrong with the
177-
178-
`Buffer` constructor?
176+
### <!--design-flaws-->What is wrong with the `Buffer` constructor?
179177

180178
The `Buffer` constructor could be used to create a buffer in many different ways:
181179

@@ -213,8 +211,6 @@ Both of these scenarios are considered serious security issues in a real-world w
213211

214212
When using `Buffer.from(req.body.string)` instead, passing a number will always throw an exception instead, giving a controlled behavior that can always be handled by the program.
215213

216-
### <!--ecosystem-usage-->The
217-
218-
`Buffer()` constructor has been deprecated for a while. Is this really an issue?
214+
### <!--ecosystem-usage-->The `Buffer()` constructor has been deprecated for a while. Is this really an issue?
219215

220216
Surveys of code in the `npm` ecosystem have shown that the `Buffer()` constructor is still widely used. This includes new code, and overall usage of such code has actually been *increasing*.

0 commit comments

Comments
 (0)