Skip to content

Commit 8529653

Browse files
committed
Merge tag '3c6724cce4483db67669638e7d278102aea36778' into GR-37528
2022-03-17 Node.js v16.14.2 'Gallium' (LTS) Release Git-EVTag-v0-SHA512: 1f602e0502b402dcaa967a16fedf3f0d4ce34fe82e46cde34613be93467c6ffc5a4dc73feaac5513f8d95ee0215bafdcea890ff3cb3146124a3d671d88d81699
2 parents ec98665 + 442e84a commit 8529653

File tree

6,014 files changed

+183997
-160686
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

6,014 files changed

+183997
-160686
lines changed

graal-nodejs/.eslintrc.js

Lines changed: 23 additions & 48 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules');
1515
const ModuleFindPath = Module._findPath;
1616
const hacks = [
1717
'eslint-plugin-node-core',
18+
'eslint-plugin-jsdoc',
1819
'eslint-plugin-markdown',
1920
'@babel/eslint-parser',
2021
'@babel/plugin-syntax-import-assertions',
@@ -34,7 +35,8 @@ Module._findPath = (request, paths, isMain) => {
3435

3536
module.exports = {
3637
root: true,
37-
plugins: ['markdown', 'node-core'],
38+
extends: ['eslint:recommended', 'plugin:jsdoc/recommended'],
39+
plugins: ['jsdoc', 'markdown', 'node-core'],
3840
parser: '@babel/eslint-parser',
3941
parserOptions: {
4042
babelOptions: {
@@ -140,17 +142,14 @@ module.exports = {
140142
'comma-spacing': 'error',
141143
'comma-style': 'error',
142144
'computed-property-spacing': 'error',
143-
'constructor-super': 'error',
144145
'default-case-last': 'error',
145146
'dot-location': ['error', 'property'],
146147
'dot-notation': 'error',
147148
'eol-last': 'error',
148149
'eqeqeq': ['error', 'smart'],
149-
'for-direction': 'error',
150150
'func-call-spacing': 'error',
151151
'func-name-matching': 'error',
152152
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
153-
'getter-return': 'error',
154153
'indent': ['error', 2, {
155154
ArrayExpression: 'first',
156155
CallExpression: { arguments: 'first' },
@@ -164,55 +163,29 @@ module.exports = {
164163
'keyword-spacing': 'error',
165164
'linebreak-style': ['error', 'unix'],
166165
'max-len': ['error', {
167-
code: 80,
166+
code: 120,
168167
ignorePattern: '^// Flags:',
169168
ignoreRegExpLiterals: true,
170169
ignoreTemplateLiterals: true,
171170
ignoreUrls: true,
172171
tabWidth: 2,
173172
}],
174173
'new-parens': 'error',
175-
'no-async-promise-executor': 'error',
176-
'no-class-assign': 'error',
177174
'no-confusing-arrow': 'error',
178-
'no-const-assign': 'error',
175+
'no-constant-condition': ['error', { checkLoops: false }],
179176
'no-constructor-return': 'error',
180-
'no-control-regex': 'error',
181-
'no-debugger': 'error',
182-
'no-delete-var': 'error',
183-
'no-dupe-args': 'error',
184-
'no-dupe-class-members': 'error',
185-
'no-dupe-keys': 'error',
186-
'no-dupe-else-if': 'error',
187-
'no-duplicate-case': 'error',
188177
'no-duplicate-imports': 'error',
189178
'no-else-return': ['error', { allowElseIf: true }],
190-
'no-empty-character-class': 'error',
191-
'no-ex-assign': 'error',
192-
'no-extra-boolean-cast': 'error',
193179
'no-extra-parens': ['error', 'functions'],
194-
'no-extra-semi': 'error',
195-
'no-fallthrough': 'error',
196-
'no-func-assign': 'error',
197-
'no-global-assign': 'error',
198-
'no-invalid-regexp': 'error',
199-
'no-irregular-whitespace': 'error',
200180
'no-lonely-if': 'error',
201-
'no-misleading-character-class': 'error',
202181
'no-mixed-requires': 'error',
203-
'no-mixed-spaces-and-tabs': 'error',
204182
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
205183
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
206184
'no-new-require': 'error',
207-
'no-new-symbol': 'error',
208-
'no-nonoctal-decimal-escape': 'error',
209-
'no-obj-calls': 'error',
210-
'no-octal': 'error',
211185
'no-path-concat': 'error',
212186
'no-proto': 'error',
213187
'no-redeclare': ['error', { 'builtinGlobals': false }],
214188
'no-restricted-modules': ['error', 'sys'],
215-
/* eslint-disable max-len */
216189
'no-restricted-properties': [
217190
'error',
218191
{
@@ -265,42 +238,27 @@ module.exports = {
265238
message: 'Use Number.isNaN() instead of the global isNaN() function.',
266239
},
267240
],
268-
/* eslint-enable max-len */
269241
'no-return-await': 'error',
270-
'no-self-assign': 'error',
271242
'no-self-compare': 'error',
272-
'no-setter-return': 'error',
273-
'no-shadow-restricted-names': 'error',
274243
'no-tabs': 'error',
275244
'no-template-curly-in-string': 'error',
276-
'no-this-before-super': 'error',
277245
'no-throw-literal': 'error',
278246
'no-trailing-spaces': 'error',
279247
'no-undef': ['error', { typeof: true }],
280248
'no-undef-init': 'error',
281-
'no-unexpected-multiline': 'error',
282-
'no-unreachable': 'error',
283-
'no-unsafe-finally': 'error',
284-
'no-unsafe-negation': 'error',
285-
'no-unsafe-optional-chaining': 'error',
286249
'no-unused-expressions': ['error', { allowShortCircuit: true }],
287-
'no-unused-labels': 'error',
288250
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],
289251
'no-use-before-define': ['error', {
290252
classes: true,
291253
functions: false,
292254
variables: false,
293255
}],
294-
'no-useless-backreference': 'error',
295256
'no-useless-call': 'error',
296-
'no-useless-catch': 'error',
297257
'no-useless-concat': 'error',
298258
'no-useless-constructor': 'error',
299-
'no-useless-escape': 'error',
300259
'no-useless-return': 'error',
301260
'no-void': 'error',
302261
'no-whitespace-before-property': 'error',
303-
'no-with': 'error',
304262
'object-curly-newline': 'error',
305263
'object-curly-spacing': ['error', 'always'],
306264
'one-var': ['error', { initialized: 'never' }],
@@ -311,6 +269,7 @@ module.exports = {
311269
{ blankLine: 'always', prev: 'function', next: 'function' },
312270
],
313271
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
272+
'prefer-object-has-own': 'error',
314273
'quotes': ['error', 'single', { avoidEscape: true }],
315274
'quote-props': ['error', 'consistent'],
316275
'rest-spread-spacing': 'error',
@@ -333,9 +292,25 @@ module.exports = {
333292
'symbol-description': 'error',
334293
'template-curly-spacing': 'error',
335294
'unicode-bom': 'error',
336-
'use-isnan': 'error',
337295
'valid-typeof': ['error', { requireStringLiterals: true }],
338296

297+
// ESLint recommended rules that we disable
298+
'no-inner-declarations': 'off',
299+
300+
// JSDoc recommended rules that we disable
301+
'jsdoc/require-jsdoc': 'off',
302+
'jsdoc/require-param-description': 'off',
303+
'jsdoc/newline-after-description': 'off',
304+
'jsdoc/require-returns-description': 'off',
305+
'jsdoc/valid-types': 'off',
306+
'jsdoc/no-undefined-types': 'off',
307+
'jsdoc/require-param': 'off',
308+
'jsdoc/check-tag-names': 'off',
309+
'jsdoc/require-returns': 'off',
310+
'jsdoc/require-property-description': 'off',
311+
'jsdoc/check-param-names': 'off',
312+
'jsdoc/tag-lines': 'off',
313+
339314
// Custom rules from eslint-plugin-node-core
340315
'node-core/no-unescaped-regexp-dot': 'error',
341316
'node-core/no-duplicate-requires': 'error',

graal-nodejs/.github/CODEOWNERS

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -5,23 +5,15 @@
55
# 3. PRs touching any code with a codeowner must be signed off by at least one
66
# person on the code owner team.
77

8-
# tsc & commcomm
8+
# tsc
99

1010
/.github/CODEOWNERS @nodejs/tsc
1111
/GOVERNANCE.md @nodejs/tsc
1212
/onboarding.md @nodejs/tsc
13-
/CODE_OF_CONDUCT.md @nodejs/tsc @nodejs/community-committee
14-
/CONTRIBUTING.md @nodejs/tsc @nodejs/community-committee
15-
/LICENSE @nodejs/tsc @nodejs/community-committee
16-
/doc/guides/contributing/code-of-conduct.md @nodejs/tsc @nodejs/community-committee
17-
# TODO(mmarchini): the bot doens't have a notion of precedence, that might
18-
# change when move the codeowners code to an Action, at which point we can
19-
# uncomment the line below
20-
# /doc/guides/contributing/*.md @nodejs/tsc
21-
/doc/guides/contributing/issues.md @nodejs/tsc
22-
/doc/guides/contributing/pull-requests.md @nodejs/tsc
23-
/doc/guides/collaborator-guide.md @nodejs/tsc
24-
/doc/guides/offboarding.md @nodejs/tsc
13+
/CODE_OF_CONDUCT.md @nodejs/tsc
14+
/CONTRIBUTING.md @nodejs/tsc
15+
/LICENSE @nodejs/tsc
16+
/doc/contributing/*.md @nodejs/tsc
2517

2618
# streams
2719

@@ -90,12 +82,12 @@
9082
/lib/internal/bootstrap/loaders.js @nodejs/modules
9183
/src/module_wrap* @nodejs/modules @nodejs/vm
9284

93-
# N-API
85+
# Node-API
9486

95-
/src/node_api* @nodejs/n-api
96-
/src/js_native_api* @nodejs/n-api
97-
/doc/guides/adding-new-napi-api.md @nodejs/n-api
98-
/doc/api/n-api.md @nodejs/n-api
87+
/src/node_api* @nodejs/node-api
88+
/src/js_native_api* @nodejs/node-api
89+
/doc/contributing/adding-new-napi-api.md @nodejs/node-api
90+
/doc/api/n-api.md @nodejs/node-api
9991

10092
# gyp
10193

graal-nodejs/.github/ISSUE_TEMPLATE/1-bug-report.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ body:
99
This issue tracker is for bugs and issues found within Node.js core.
1010
If you require more general support please file an issue on our help repo. https://github.com/nodejs/help
1111
12-
Please fill in as much of the form below as you're able.
12+
Please fill in as much of the following form as you're able.
1313
- type: input
1414
attributes:
1515
label: Version
@@ -39,6 +39,8 @@ body:
3939
attributes:
4040
label: What do you see instead?
4141
description: If possible please provide textual output instead of screenshots.
42+
validations:
43+
required: true
4244
- type: textarea
4345
attributes:
4446
label: Additional information

graal-nodejs/.github/ISSUE_TEMPLATE/2-feature-request.md

Lines changed: 0 additions & 20 deletions
This file was deleted.
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: "\U0001F680 Feature request"
2+
description: Suggest an idea for this project
3+
labels: ["feature request"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for suggesting an idea to make Node.js better.
9+
10+
Please fill in as much of the following form as you're able.
11+
12+
For more information on how the project manages feature
13+
requests, see [Feature request management](https://github.com/nodejs/node/blob/HEAD/doc/guides/feature-request-management.md).
14+
- type: textarea
15+
attributes:
16+
label: What is the problem this feature will solve?
17+
validations:
18+
required: true
19+
- type: textarea
20+
attributes:
21+
label: What is the feature you are proposing to solve the problem?
22+
validations:
23+
required: true
24+
- type: textarea
25+
attributes:
26+
label: What alternatives have you considered?

graal-nodejs/.github/ISSUE_TEMPLATE/3-api-ref-docs-problem.md

Lines changed: 0 additions & 77 deletions
This file was deleted.
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: "\U0001F4D7 Open an issue regarding the Node.js API reference docs"
2+
description: Let us know about any problematic API reference documents
3+
labels: ["doc"]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
Thank you for wanting to make nodejs.org better!
9+
10+
Please fill in as much of the following form as you're able.
11+
- type: input
12+
attributes:
13+
label: Affected URL(s)
14+
- type: textarea
15+
attributes:
16+
label: Description of the problem
17+
validations:
18+
required: true

graal-nodejs/.github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
name: Report a flaky test
22
description: Report a flaky test in our CI
3-
title: "Investigate flaky test - "
43
labels: ["flaky-test"]
54
body:
65
- type: markdown

graal-nodejs/.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ Before submitting a pull request, please read
33
https://github.com/nodejs/node/blob/HEAD/CONTRIBUTING.md.
44
55
Commit message formatting guidelines:
6-
https://github.com/nodejs/node/blob/HEAD/doc/guides/contributing/pull-requests.md#commit-message-guidelines
6+
https://github.com/nodejs/node/blob/HEAD/doc/contributing/pull-requests.md#commit-message-guidelines
77
88
For code changes:
99
1. Include tests for any bug fixes or new features.

0 commit comments

Comments
 (0)