Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

v16.14.0 proposal #41804

Merged
merged 385 commits into from Feb 8, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
385 commits
Select commit Hold shift + click to select a range
20c4c6a
build: update Actions versions
Mesteery Nov 30, 2021
9e770d4
tools: ignore unrelated workflow changes in slow Actions tests
aduh95 Nov 30, 2021
ef33729
readline: skip escaping characters again
BridgeAR Dec 1, 2021
2251bba
stream: remove whatwg streams experimental warning
jasnell Dec 1, 2021
c52ce19
doc: specify that `message.socket` can be nulled
lpinca Dec 1, 2021
78a8c1b
events: propagate weak option for kNewListener
jasnell Nov 29, 2021
157753b
lib: add AbortSignal.timeout
jasnell Nov 20, 2021
45e7aff
tools: include JSDoc in ESLint updating tool
Trott Nov 30, 2021
af9b05f
tools: install and enable JSDoc linting in ESLint
Trott Nov 30, 2021
b15f5e4
util: always visualize cause property in errors during inspection
BridgeAR Dec 2, 2021
f40e099
lib: do not lazy load EOL in blob
BridgeAR Dec 2, 2021
3f6106c
doc: link to commit queue guide
GeoffreyBooth Dec 2, 2021
b9567d9
test: add auth option case for url.format
Dec 2, 2021
08c2512
url: detect hostname more reliably in url.parse()
Trott Dec 2, 2021
f74d8b5
tools: udpate packages in tools/doc
Trott Nov 30, 2021
535bb5f
build: add tools/doc to tools.yml updates
Trott Nov 30, 2021
084decd
doc: expand entries for isIP(), isIPv4(), and isIPv6()
Trott Dec 2, 2021
5f01d03
src: use a higher limit in the NearHeapLimitCallback
joyeecheung Nov 30, 2021
45a3e24
util: add numericSeparator to util.inspect
BridgeAR Dec 3, 2021
5bfa0ea
tools: remove Babel from license-builder.sh
Trott Dec 3, 2021
3450227
test: deflake test-trace-atomics-wait
lpinca Dec 3, 2021
375d04a
node-api,doc: document parms which can be optional
mhdawson Nov 29, 2021
f826c86
build: fail early in test-macos.yml
Trott Nov 30, 2021
f9cf50f
tools: rollback highlight.js
richardlau Dec 4, 2021
6a9db2e
doc: add explicit declaration of fd with null val
Gena888 Nov 2, 2021
0983f6b
tools: use jsdoc recommended rules
Trott Dec 2, 2021
d6b1542
test: add missing JSDoc parameter name
Trott Dec 2, 2021
50420c6
tools: enable jsdoc/require-param-name lint rule
Trott Dec 2, 2021
74557c3
build: add `--without-corepack`
jonahsnider Dec 5, 2021
c5f9e96
timers: add experimental scheduler api
jasnell Nov 21, 2021
25d3103
meta: update AUTHORS
nodejs-github-bot Dec 5, 2021
3c13bbd
deps: upgrade npm to 8.2.0
npm-robot Dec 2, 2021
4aae04b
tools: update ESLint to 8.4.0
lpinca Dec 6, 2021
c8625d1
build: re-enable V8 concurrent marking
targos Nov 29, 2021
7930725
doc: add @bnb as a collaborator
bnb Dec 6, 2021
4f300a5
util: escape lone surrogate code points using .inspect()
BridgeAR Dec 6, 2021
2d471e4
assert: use stricter stack frame detection in .ifError()
BridgeAR Dec 6, 2021
28c52f6
test: skip ESLint tests if no Intl
Trott Dec 7, 2021
ecc086c
doc: clarify escaping for ES modules
notroid5 Dec 7, 2021
eda57a9
lib: use consistent types in JSDoc @returns
Trott Dec 5, 2021
2c009cc
tools: enable jsdoc/require-returns-check lint rule
Trott Dec 5, 2021
860d552
build: skip documentation generation if no ICU
Trott Dec 5, 2021
1ff1521
tools: update highlight.js to 11.3.1
Trott Dec 5, 2021
2c28f86
tools: strip comments from lint-md rollup output
Trott Dec 7, 2021
3b5b893
tls: improve handling of shutdown
vtjnash Nov 13, 2020
e401e6c
doc: simplify major release preparation
BethGriggs Dec 8, 2021
179886f
doc: remove OpenJSF Slack nodejs from support doc
Trott Dec 7, 2021
59d159f
doc,lib,tools: align multiline comments
Trott Dec 7, 2021
33be3e8
tools: enable JSDoc check-alignment lint rule
Trott Dec 7, 2021
f35bd52
doc: add note about pip being required
PiotrRybak Oct 30, 2021
22970c6
doc: document support building with Python 3.10 on Windows
cclauss Dec 6, 2021
67c6170
fs: fix `length` option being ignored during `read()`
fracsinus Dec 10, 2021
eaab8d0
fs: fix error codes for `fs.cp`
aduh95 Dec 10, 2021
3dc8483
tools: update ESLint to 8.4.1
Trott Dec 10, 2021
35d0a4e
doc: fix comments in test-fs-watch.js
jakub-g Dec 10, 2021
5356dfd
inspector: add missing initialization
mhdawson Nov 29, 2021
0bf8291
http: don't write empty data on req/res end()
santigimeno Dec 10, 2021
2ca3714
src: fix limit calculation
mhdawson Dec 10, 2021
799cf57
buffer: fix `Blob` constructor on various `TypedArray`s
Gozala Dec 10, 2021
438b9cf
lib: make AbortSignal cloneable/transferable
jasnell Dec 1, 2021
c4a5db6
doc: move style guide to findable location
Trott Dec 11, 2021
d3289b2
build: fix commit-queue-rebase functionality
Trott Dec 11, 2021
8ce8588
util: pass through the inspect function to custom inspect functions
BridgeAR Dec 11, 2021
89d9556
util: make sure error causes of any type may be inspected
BridgeAR Dec 6, 2021
2602c0c
util: serialize falsy cause values while inspecting errors
BridgeAR Dec 6, 2021
f6bf747
doc: update nodejs-sec managers
mhdawson Dec 12, 2021
875fa40
deps: upgrade npm to 8.3.0
npm-robot Dec 9, 2021
d8dbced
meta: update AUTHORS
nodejs-github-bot Dec 12, 2021
0b21440
tools: update lint-md-dependencies to rollup@2.61.1 vfile-reporter@7.0.3
nodejs-github-bot Dec 12, 2021
719c39d
tools: update doc to remark-rehype@10.1.0
nodejs-github-bot Dec 13, 2021
c60cff9
process: add `getActiveResourcesInfo()`
RaisinTen Dec 14, 2021
3360103
assert: prefer reference comparison over string comparison
RaisinTen Dec 14, 2021
ac025f1
doc: align module resolve algorithm with implementation
Ayase-252 Dec 14, 2021
7756e1c
build: use gh cli in workflows file
Mesteery Dec 14, 2021
7f3604a
meta: move silverwind to emeriti
silverwind Dec 14, 2021
0b411c4
build: fix comment-labeled workflow
Mesteery Dec 14, 2021
f8c6055
meta: move to emeritus automatically after 18 months
Trott Dec 13, 2021
bfbb7fc
build,tools: automate enforcement of emeritus criteria
Trott Dec 13, 2021
5ac6027
meta: move one or more collaborators to emeritus
nodejs-github-bot Dec 13, 2021
f0693cb
doc: add security steward on/offboarding steps
mhdawson Dec 9, 2021
93450e5
build: use '<(python)' instead of 'python'
zcbenz Dec 16, 2021
8be5b66
doc: fix closing parenthesis
AlphaDio Dec 16, 2021
4522216
stream: add isErrored helper
ronag Dec 9, 2021
115775f
meta: remove community-committee from CODEOWNERS
Trott Dec 16, 2021
a40989f
crypto: fix error capture when loading engine
tniessen Dec 15, 2021
ba85147
doc: fix syntax error in nested conditions example
Andarist Dec 17, 2021
11a5f7a
doc: adding estimated execution time
mawaregetsuka Dec 17, 2021
95568dc
tools: fix GitHub Actions status when CQ is empty
aduh95 Dec 18, 2021
433274a
tools: fix CQ and auto-start-ci jobs
aduh95 Dec 18, 2021
de2140d
tools: update lint-md-dependencies to @rollup/plugin-node-resolve@13.1.1
nodejs-github-bot Dec 18, 2021
4814667
lib,tools: remove empty lines between JSDoc tags
Trott Dec 12, 2021
91fc85a
tools: enable jsdoc/tag-lines ESLint rule
Trott Dec 12, 2021
f926a49
tools: update eslint to 8.5.0
nodejs-github-bot Dec 19, 2021
ad06e3d
doc: add unhandledRejection to strict mode
cjihrig Dec 19, 2021
d3444a5
meta: update AUTHORS
nodejs-github-bot Dec 19, 2021
c10fcb1
build: improve readability of texts in workflows
Mesteery Dec 19, 2021
c021b38
perf_hooks: multiple fixes for Histogram
jasnell Dec 12, 2021
15e5d7a
child_process: add support for URL to `cp.fork`
aduh95 Dec 19, 2021
e7d57ac
doc: align maxHeaderSize default with current value
kanongil Dec 19, 2021
a47fc90
lib: fix checking syntax of esm module
Ayase-252 Dec 19, 2021
e68bf84
benchmark,test: use Object.hasOwn() where applicable
Trott Dec 20, 2021
a6e7cf5
doc: make function signature comply with JSDoc comment
Trott Dec 21, 2021
8cf507a
stream: fix enqueue race condition on esm modules
RafaelGSS Dec 21, 2021
2e133d5
test: mark test-crypto-keygen slow on windows
mhdawson Dec 16, 2021
b688f20
async_hooks: fix AsyncLocalStorage in unhandledRejection cases
bmeck Dec 16, 2021
7b6db6d
policy: add missing JSDoc @param entry
Trott Dec 21, 2021
a0a8f4d
esm: reconcile JSDoc vs. actual parameter name
Trott Dec 21, 2021
f4cef53
fs: correct param names in JSDoc comments
Trott Dec 21, 2021
49dc1f2
tools: enable prefer-object-has-own lint rule
Trott Dec 21, 2021
8926d95
test: correct param name in JSDoc comment
Trott Dec 21, 2021
f6cf39a
lib: remove spurious JSDoc entry
Trott Dec 21, 2021
7b6c71a
util: display a present-but-undefined error cause
ljharb Dec 21, 2021
1523aa5
tools: add double-quotes to make-v8.sh
Trott Dec 22, 2021
d51e8ff
tools: use arrow function for callback in lint-sh.js
Trott Dec 22, 2021
93b5a27
meta: move one or more collaborators to emeritus
nodejs-github-bot Dec 22, 2021
ae32af3
tools: make license-builder.sh comply with shellcheck 0.8.0
Trott Dec 22, 2021
e444b41
test: mark wpt/test-user-timing test flaky
mhdawson Dec 16, 2021
aa04a2c
doc: add usage recommendation for writable._destroy
RafaelGSS Dec 22, 2021
a53399e
test: mark test-worker-take-heapsnapshot flaky
mhdawson Dec 20, 2021
0f728e0
tools: update doc dependency mdast-util-gfm-table to 1.0.2
Trott Dec 23, 2021
b79fdd5
events: add EventEmitterAsyncResource to core
jasnell Dec 23, 2021
599c119
tools: consolidate update-authors.js logic
Trott Dec 23, 2021
f3b0dfc
doc: fix example in node-api docs
mhdawson Dec 21, 2021
3c99a4d
http2: handle existing socket data when creating HTTP/2 server sessions
pimterry Dec 23, 2021
9319fa3
meta: update node-api team name
richardlau Dec 23, 2021
4011be0
tools: use {N} for spaces in regex
Trott Dec 23, 2021
d25b172
child_process: revise argument processing
Trott Dec 24, 2021
3185772
events: add jsdoc details for Event and EventTarget
jasnell Dec 21, 2021
2c7f17c
util: do not reduce to a single line if not appropriate using inspect
BridgeAR Dec 4, 2021
9eb8233
doc: include stack trace difference in ES modules
thebergamo Dec 13, 2021
7815fbd
tools: be intentional about masking possible error in start-ci.sh
Trott Dec 24, 2021
720fad8
doc: remove legacy in-page links in v8.md
Trott Dec 23, 2021
b6a0afc
tools: avoid generating duplicate id attributes
Trott Dec 23, 2021
f788a47
async_hooks: add missing initialization
mhdawson Dec 25, 2021
f890582
tools: use Object.hasOwn() in alljson.mjs
Trott Dec 26, 2021
081f72e
doc: remove section about amending commits in PR guide
Farenheith Dec 26, 2021
bb997ff
meta: update AUTHORS
nodejs-github-bot Dec 26, 2021
24b40b3
events: graduate capturerejections to supported
jasnell Dec 27, 2021
ffca1a7
tls: permit null as a pfx value
CallMeLaNN Dec 27, 2021
8d15bac
test: add comments explaining _setSimultaneousAccepts deprecation tests
kuriyosh Dec 27, 2021
85438e3
tools: update lint-md-dependencies to rollup@2.62.0
nodejs-github-bot Dec 27, 2021
12c5333
tools: simplify commit-queue.sh merge command
Trott Dec 27, 2021
1c0c140
doc: fix sync comment in observer snippet
erj826 Dec 27, 2021
1d2e676
tools: improve section tag additions in HTML doc generator
Trott Dec 27, 2021
51e6ed0
meta: replace feature request template with form
Trott Dec 28, 2021
1280e19
events: clarify JSDoc entries
Trott Dec 24, 2021
f31a3a2
tools: enable jsdoc/check-param-names lint rule
Trott Dec 24, 2021
9c718f8
stream: add map method to Readable
benjamingr Nov 15, 2021
7cef769
stream: add isReadable helper
ronag Dec 16, 2021
bc48ed2
benchmark: fix benchmark/run.js handling of --set
Trott Dec 29, 2021
9f2365c
tools: do not mask errors on multiple commit retrieval
Trott Dec 30, 2021
b1e4387
test: use spawnSync() full name
Trott Dec 30, 2021
256bf9e
test: improve expectWarning error message
Trott Dec 30, 2021
9086338
child_process: queue pending messages
ErickWendel Dec 17, 2021
404c8f5
test: use spawnSync() full name in test-stdio-pipe-stderr
Trott Dec 26, 2021
782dbbd
typings: add JSDoc for `string_decoder`
Ayase-252 Dec 30, 2021
5380de7
typings: add types for symbol and accessor properties on `primordials`
ExE-Boss Dec 30, 2021
46c38eb
doc: make pull-request guide default branch agnostic
aduh95 Dec 31, 2021
41cfc32
doc: fix example description for worker_threads
krutoo Dec 31, 2021
08f5c8d
meta: move one or more collaborators to emeritus
nodejs-github-bot Dec 31, 2021
970de53
meta: replace API docs issue template with form
Trott Dec 31, 2021
66556b3
fs: use async directory processing in cp()
cjihrig Dec 31, 2021
ff48705
build: remove Python 2 workaround
Trott Jan 1, 2022
530c127
tools: update eslint to 8.6.0
nodejs-github-bot Jan 1, 2022
e8f00fd
tools: remove last of error-masking in commit-queue.sh
Trott Jan 1, 2022
59625f7
src: guard slightly costly check in MakeCallback more strongly
addaleax Dec 26, 2021
72921f4
src: store native async execution resources as `v8::Local`
addaleax Dec 26, 2021
fe4158a
src: split out async stack corruption detection from inline fn
addaleax Dec 26, 2021
7618b55
doc: revise frozen-intrinsics text
Trott Dec 27, 2021
77c1868
stream: add filter method to readable
benjamingr Dec 30, 2021
b5b3750
timers: use ref counts to count timers
RaisinTen Jan 2, 2022
add1184
doc: clarify `require` behavior with non `.js` extensions
aduh95 Jan 2, 2022
5d5c52f
meta: update AUTHORS
nodejs-github-bot Jan 4, 2022
874000f
test: mark test-repl-sigint-nested-eval as flaky
mhdawson Dec 23, 2021
03490cb
node-api: add missing initialization of last error
mhdawson Dec 22, 2021
003dd37
tools: update doc to rehype-raw@6.1.1
nodejs-github-bot Jan 1, 2022
c65ac72
build: use list for mutable retval rather than tuple
Trott Jan 5, 2022
d383904
http: remove duplicate code
xiaoxiaojx Jul 2, 2021
71bc352
doc: clarify entry point behavior when using loader hooks
aduh95 Jan 5, 2022
04a81b3
doc: document that `require.main` may be `undefined`
aduh95 Jan 5, 2022
dc536f4
meta: add required fields in issue templates
Trott Jan 5, 2022
a136d56
tools: update lint-md-dependencies to @rollup/plugin-node-resolve@13.1.2
nodejs-github-bot Jan 5, 2022
00abb81
tls: use optional chaining to simplify checks
aduh95 Jan 5, 2022
3ecc964
tools: remove conditional assignment in custom ESLint rule
Trott Dec 26, 2021
362f5ed
tools,benchmark,lib,test: enable no-case-declarations lint rule
Trott Jan 3, 2022
c951512
doc: fix example commands for `REPLACEME` updates
richardlau Jan 5, 2022
14068f8
doc: update Abstract Equality Comparison text in assert.md
Trott Jan 5, 2022
3bd8e92
test: mark test-performance-eventloopdelay flaky
mhdawson Jan 6, 2022
cb30038
src: do IWYU for some STL includes
dsanders11 Jan 6, 2022
fc38d15
build,tools,win: trim unused VCBUILD_PYTHON_LOCATION variable
dsanders11 Jan 6, 2022
c49a651
build: start build on z/OS
alexcfyung Jan 6, 2022
2bc381e
tools: fix argv bug in find-inactive-tsc.mjs
Trott Jan 7, 2022
af6f1d5
deps: upgrade to libuv 1.43.0
cjihrig Jan 7, 2022
5d27f4a
stream: remove unused function argument
Trott Jan 7, 2022
66b90f9
doc: add @RaisinTen to the TSC
mhdawson Jan 6, 2022
b281bf5
doc: add reference for == and != operators
Trott Jan 8, 2022
91c3e28
doc: revise HTTPRequestOptions text
Trott Jan 8, 2022
62450d3
tools: replace while+exec() with matchAll()
Trott Jan 9, 2022
52a988b
doc: clarify `uncaughtException` `origin` for ESM
aduh95 Jan 9, 2022
8dfc143
meta: update AUTHORS
nodejs-github-bot Jan 9, 2022
e83e416
meta: correct my name in AUTHORS
JakobJingleheimer Jan 10, 2022
fe24cb2
doc: add reference for `===` operator in assert.md
Trott Jan 10, 2022
00333fe
doc: add note regarding unfinished TLA
aduh95 Jan 10, 2022
70ea746
tools: use GITHUB_ACTIONS env var in inactivity scripts
Trott Jan 10, 2022
790898e
doc: update output in inspector examples
dsanders11 Jan 10, 2022
2586f09
doc: add guidance on order vulns are listed in
mhdawson Jan 7, 2022
ae30b39
stream: fix error-path function call
Trott Jan 11, 2022
30cb694
doc: update mailmap entries for mhdawson
mhdawson Jan 7, 2022
9467aa9
meta: update AUTHORS
nodejs-github-bot Jan 11, 2022
4a09904
benchmark: simplify http benchmarker regular expression
Trott Apr 11, 2021
86ece98
tools: replace for loop with map()
Trott Jan 9, 2022
e425f36
doc: remove SameValue comparison reference
Trott Jan 13, 2022
6ffb1e8
build: fix workflow access to git history
Trott Jan 13, 2022
dea8895
doc: remove extraneous colon in legacy subject
tniessen Jan 11, 2022
121199f
meta: move one or more collaborators to emeritus
nodejs-github-bot Jan 13, 2022
3cfe856
esm: make `process.exit()` default to exit code 0
MoonBall Jan 14, 2022
063abe5
tools: enable ESLint no-loss-of-precision rule
Trott Jan 9, 2022
609a310
tools: enable ESLint no-sparse-arrays rule
Trott Jan 9, 2022
12ea18d
tools: enable ESLint require-yield rule
Trott Jan 9, 2022
5d70195
tools,lib,test: enable ESLint no-regex-spaces rule
Trott Jan 9, 2022
ecf3b6d
tools: enable ESLint no-constant-condition rule
Trott Jan 9, 2022
7d5686d
tools: enable ESLint recommended configuration
Trott Jan 9, 2022
d445816
doc: correct checkHost behavior with wildcards etc
tniessen Jan 11, 2022
b4d2454
src: fix out-of-bounds check of serialization indices
JoostK Jan 9, 2022
66feaf4
tools: fix small not-quite-a-bug in find-inactive-tsc.mjs
Trott Jan 14, 2022
3c4e3c0
src: gracefully handle errors in GetX509NameObject
tniessen Jan 11, 2022
9dd0973
deps: V8: cherry-pick 3b6b21f595f6
targos Jan 14, 2022
9242c19
test: do not OR F_OK in fs.access() test
cjihrig Jan 11, 2022
c914d95
doc: expand fs.access() mode parameter docs
cjihrig Jan 12, 2022
fa425a1
test: remove broken wiki link from test/common doc
kuriyosh Jan 14, 2022
d5ad2b7
doc: add missing YAML tag in `esm.md`
aduh95 Jan 14, 2022
40c0960
test: improve test coverage of dns/promises
kuriyosh Jan 14, 2022
2bea4bd
doc: add missing word in readable.read() text
Trott Jan 14, 2022
a59ade6
deps: upgrade npm to 8.3.1
npm-robot Jan 14, 2022
3e4d977
build: fix node build failures in WSL Ubuntu
MrJithil Jan 11, 2022
5e890be
stream: remove always-false condition check
Trott Jan 15, 2022
0d009ae
doc: add Mesteery to collaborators
Mesteery Jan 15, 2022
7ba5310
doc: fix typo in `onboarding.md`
aduh95 Jan 15, 2022
1db154f
doc: remove statement about client private keys
tniessen Jan 13, 2022
5c1dc5f
build: fix npm version detection
targos Jan 18, 2022
c776c7c
lib: include return types in JSDoc
Trott Dec 9, 2021
99a90db
tools: enable jsdoc/require-returns-type ESLint rule
Trott Dec 9, 2021
b671194
fs: accept URL as argument for `fs.rm` and `fs.rmSync`
aduh95 Dec 13, 2021
694dc12
loader: return package format from defaultResolve if known
dygabo Dec 13, 2021
d422e58
loader: fix package resolution for edge case
dygabo Dec 22, 2021
ebc370c
deps: V8: cherry-pick cc9a8a37445e
devsnek Feb 2, 2022
283f1e8
lib: fix linting warnings and errors
danielleadams Feb 1, 2022
1de552c
test: add ignore for regex space rule
danielleadams Feb 1, 2022
ce525e9
doc: align links in table to top
nikoladev Jan 10, 2022
418ff70
2022-02-08, Version 16.14.0 'Gallium' (LTS)
danielleadams Feb 1, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
70 changes: 25 additions & 45 deletions .eslintrc.js
Expand Up @@ -15,6 +15,7 @@ NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules');
const ModuleFindPath = Module._findPath;
const hacks = [
'eslint-plugin-node-core',
'eslint-plugin-jsdoc',
'eslint-plugin-markdown',
'@babel/eslint-parser',
'@babel/plugin-syntax-import-assertions',
Expand All @@ -34,7 +35,8 @@ Module._findPath = (request, paths, isMain) => {

module.exports = {
root: true,
plugins: ['markdown', 'node-core'],
extends: ['eslint:recommended', 'plugin:jsdoc/recommended'],
plugins: ['jsdoc', 'markdown', 'node-core'],
parser: '@babel/eslint-parser',
parserOptions: {
babelOptions: {
Expand Down Expand Up @@ -140,17 +142,14 @@ module.exports = {
'comma-spacing': 'error',
'comma-style': 'error',
'computed-property-spacing': 'error',
'constructor-super': 'error',
'default-case-last': 'error',
'dot-location': ['error', 'property'],
'dot-notation': 'error',
'eol-last': 'error',
'eqeqeq': ['error', 'smart'],
'for-direction': 'error',
'func-call-spacing': 'error',
'func-name-matching': 'error',
'func-style': ['error', 'declaration', { allowArrowFunctions: true }],
'getter-return': 'error',
'indent': ['error', 2, {
ArrayExpression: 'first',
CallExpression: { arguments: 'first' },
Expand All @@ -172,42 +171,17 @@ module.exports = {
tabWidth: 2,
}],
'new-parens': 'error',
'no-async-promise-executor': 'error',
'no-class-assign': 'error',
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
'no-constant-condition': ['error', { checkLoops: false }],
'no-constructor-return': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-delete-var': 'error',
'no-dupe-args': 'error',
'no-dupe-class-members': 'error',
'no-dupe-keys': 'error',
'no-dupe-else-if': 'error',
'no-duplicate-case': 'error',
'no-duplicate-imports': 'error',
'no-else-return': ['error', { allowElseIf: true }],
'no-empty-character-class': 'error',
'no-ex-assign': 'error',
'no-extra-boolean-cast': 'error',
'no-extra-parens': ['error', 'functions'],
'no-extra-semi': 'error',
'no-fallthrough': 'error',
'no-func-assign': 'error',
'no-global-assign': 'error',
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-lonely-if': 'error',
'no-misleading-character-class': 'error',
'no-mixed-requires': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
'no-new-require': 'error',
'no-new-symbol': 'error',
'no-nonoctal-decimal-escape': 'error',
'no-obj-calls': 'error',
'no-octal': 'error',
'no-path-concat': 'error',
'no-proto': 'error',
'no-redeclare': ['error', { 'builtinGlobals': false }],
Expand Down Expand Up @@ -267,40 +241,26 @@ module.exports = {
],
/* eslint-enable max-len */
'no-return-await': 'error',
'no-self-assign': 'error',
'no-self-compare': 'error',
'no-setter-return': 'error',
'no-shadow-restricted-names': 'error',
'no-tabs': 'error',
'no-template-curly-in-string': 'error',
'no-this-before-super': 'error',
'no-throw-literal': 'error',
'no-trailing-spaces': 'error',
'no-undef': ['error', { typeof: true }],
'no-undef-init': 'error',
'no-unexpected-multiline': 'error',
'no-unreachable': 'error',
'no-unsafe-finally': 'error',
'no-unsafe-negation': 'error',
'no-unsafe-optional-chaining': 'error',
'no-unused-expressions': ['error', { allowShortCircuit: true }],
'no-unused-labels': 'error',
'no-unused-vars': ['error', { args: 'none', caughtErrors: 'all' }],
'no-use-before-define': ['error', {
classes: true,
functions: false,
variables: false,
}],
'no-useless-backreference': 'error',
'no-useless-call': 'error',
'no-useless-catch': 'error',
'no-useless-concat': 'error',
'no-useless-constructor': 'error',
'no-useless-escape': 'error',
'no-useless-return': 'error',
'no-void': 'error',
'no-whitespace-before-property': 'error',
'no-with': 'error',
'object-curly-newline': 'error',
'object-curly-spacing': ['error', 'always'],
'one-var': ['error', { initialized: 'never' }],
Expand All @@ -311,6 +271,7 @@ module.exports = {
{ blankLine: 'always', prev: 'function', next: 'function' },
],
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
'prefer-object-has-own': 'error',
'quotes': ['error', 'single', { avoidEscape: true }],
'quote-props': ['error', 'consistent'],
'rest-spread-spacing': 'error',
Expand All @@ -333,9 +294,28 @@ module.exports = {
'symbol-description': 'error',
'template-curly-spacing': 'error',
'unicode-bom': 'error',
'use-isnan': 'error',
'valid-typeof': ['error', { requireStringLiterals: true }],

// ESLint recommended rules that we disable
'no-cond-assign': 'off',
'no-empty': 'off',
'no-inner-declarations': 'off',
'no-prototype-builtins': 'off',

// JSDoc recommended rules that we disable
'jsdoc/require-jsdoc': 'off',
'jsdoc/require-param-description': 'off',
'jsdoc/newline-after-description': 'off',
'jsdoc/require-returns-description': 'off',
'jsdoc/valid-types': 'off',
'jsdoc/no-undefined-types': 'off',
'jsdoc/require-param': 'off',
'jsdoc/check-tag-names': 'off',
'jsdoc/require-returns': 'off',
'jsdoc/require-property-description': 'off',
'jsdoc/check-param-names': 'off',
'jsdoc/tag-lines': 'off',

// Custom rules from eslint-plugin-node-core
'node-core/no-unescaped-regexp-dot': 'error',
'node-core/no-duplicate-requires': 'error',
Expand Down
26 changes: 10 additions & 16 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Expand Up @@ -5,21 +5,15 @@
# 3. PRs touching any code with a codeowner must be signed off by at least one
# person on the code owner team.

# tsc & commcomm
# tsc

/.github/CODEOWNERS @nodejs/tsc
/GOVERNANCE.md @nodejs/tsc
/onboarding.md @nodejs/tsc
/CODE_OF_CONDUCT.md @nodejs/tsc @nodejs/community-committee
/CONTRIBUTING.md @nodejs/tsc @nodejs/community-committee
/LICENSE @nodejs/tsc @nodejs/community-committee
/doc/guides/contributing/code-of-conduct.md @nodejs/tsc @nodejs/community-committee
# TODO(mmarchini): the bot doens't have a notion of precedence, that might
# change when move the codeowners code to an Action, at which point we can
# uncomment the line below
# /doc/guides/contributing/*.md @nodejs/tsc
/doc/guides/contributing/issues.md @nodejs/tsc
/doc/guides/contributing/pull-requests.md @nodejs/tsc
/CODE_OF_CONDUCT.md @nodejs/tsc
/CONTRIBUTING.md @nodejs/tsc
/LICENSE @nodejs/tsc
/doc/guides/contributing/*.md @nodejs/tsc
/doc/guides/collaborator-guide.md @nodejs/tsc
/doc/guides/offboarding.md @nodejs/tsc

Expand Down Expand Up @@ -90,12 +84,12 @@
/lib/internal/bootstrap/loaders.js @nodejs/modules
/src/module_wrap* @nodejs/modules @nodejs/vm

# N-API
# Node-API

/src/node_api* @nodejs/n-api
/src/js_native_api* @nodejs/n-api
/doc/guides/adding-new-napi-api.md @nodejs/n-api
/doc/api/n-api.md @nodejs/n-api
/src/node_api* @nodejs/node-api
/src/js_native_api* @nodejs/node-api
/doc/guides/adding-new-napi-api.md @nodejs/node-api
/doc/api/n-api.md @nodejs/node-api

# gyp

Expand Down
4 changes: 3 additions & 1 deletion .github/ISSUE_TEMPLATE/1-bug-report.yml
Expand Up @@ -9,7 +9,7 @@ body:
This issue tracker is for bugs and issues found within Node.js core.
If you require more general support please file an issue on our help repo. https://github.com/nodejs/help

Please fill in as much of the form below as you're able.
Please fill in as much of the following form as you're able.
- type: input
attributes:
label: Version
Expand Down Expand Up @@ -39,6 +39,8 @@ body:
attributes:
label: What do you see instead?
description: If possible please provide textual output instead of screenshots.
validations:
required: true
- type: textarea
attributes:
label: Additional information
Expand Down
20 changes: 0 additions & 20 deletions .github/ISSUE_TEMPLATE/2-feature-request.md

This file was deleted.

23 changes: 23 additions & 0 deletions .github/ISSUE_TEMPLATE/2-feature-request.yml
@@ -0,0 +1,23 @@
name: "\U0001F680 Feature request"
description: Suggest an idea for this project
labels: ["feature request"]
body:
- type: markdown
attributes:
value: |
Thank you for suggesting an idea to make Node.js better.

Please fill in as much of the following form as you're able.
- type: textarea
attributes:
label: What is the problem this feature will solve?
validations:
required: true
- type: textarea
attributes:
label: What is the feature you are proposing to solve the problem?
validations:
required: true
- type: textarea
attributes:
label: What alternatives have you considered?
77 changes: 0 additions & 77 deletions .github/ISSUE_TEMPLATE/3-api-ref-docs-problem.md

This file was deleted.

18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/3-api-ref-docs-problem.yml
@@ -0,0 +1,18 @@
name: "\U0001F4D7 Open an issue regarding the Node.js API reference docs"
description: Let us know about any problematic API reference documents
labels: ["doc"]
body:
- type: markdown
attributes:
value: |
Thank you for wanting to make nodejs.org better!

Please fill in as much of the following form as you're able.
- type: input
attributes:
label: Affected URL(s)
- type: textarea
attributes:
label: Description of the problem
validations:
required: true
1 change: 0 additions & 1 deletion .github/ISSUE_TEMPLATE/4-report-a-flaky-test.yml
@@ -1,6 +1,5 @@
name: Report a flaky test
description: Report a flaky test in our CI
title: "Investigate flaky test - "
labels: ["flaky-test"]
body:
- type: markdown
Expand Down
1 change: 0 additions & 1 deletion .github/SUPPORT.md
Expand Up @@ -15,7 +15,6 @@ If you didn't find an answer in the resources above, try these unofficial
resources:

* [Questions tagged 'node.js' on Stack Overflow](https://stackoverflow.com/questions/tagged/node.js)
* [#nodejs](https://openjs-foundation.slack.com/archives/CK9Q4MB53) channel on the OpenJS Foundation Slack ([join here](https://slack-invite.openjsf.org/))
* [#node.js channel on libera.chat](https://web.libera.chat?channels=node.js&uio=d4)
* [Node.js Slack Community](https://node-js.slack.com/)
* To register: [nodeslackers.com](https://www.nodeslackers.com/)
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/authors.yml
Expand Up @@ -14,13 +14,17 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: '0' # This is required to actually get all the authors
persist-credentials: false
- run: "tools/update-authors.js" # Run the AUTHORS tool
- uses: gr2m/create-or-update-pull-request-action@v1 # Create a PR or update the Action's existing PR
env:
GITHUB_TOKEN: ${{ secrets.GH_USER_TOKEN }}
with:
author: Node.js GitHub Bot <github-bot@iojs.org>
body: "Here are some new additions to the AUTHORS file. This is an automatically generated PR by the `authors.yml` GitHub Action, which runs `tools/update-authors.js`."
body: >
Here are some new additions to the AUTHORS file.
This is an automatically generated PR by the
`authors.yml` GitHub Action, which runs `tools/update-authors.js`.
branch: "actions/authors-update" # Custom branch *just* for this Action.
commit-message: "meta: update AUTHORS"
labels: meta
Expand Down