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

Node v10.8 using NDK #6

Open
wants to merge 2,221 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
2221 commits
Select commit Hold shift + click to select a range
e7abde4
test: add a request-response test for MessageChannel
itaysabato Jun 25, 2018
0d98fe6
lib: fix segfault with --without-intl
Trott Jun 29, 2018
91384bf
n-api: add API for asynchronous functions
Jun 17, 2018
29299cc
esm: loader hook URL validation and error messages
guybedford Jun 18, 2018
b28fd37
test: fix ESM test
addaleax Jun 30, 2018
a8a7575
src: remove extra `ReadStop()` call
addaleax Jun 25, 2018
0550a58
src: remove StreamBase::kFlagHasWritev
addaleax Jun 25, 2018
95fa3c6
test: add worker prefix to test-message* tests
targos Jun 24, 2018
1e5afb7
errors: fix ERR_MISSING_DYNAMIC_INSTANTIATE_HOOK
ChALkeR Jun 23, 2018
cadc74d
doc: fix heading level in errors.md
vsemozhetbyt Jul 1, 2018
24bc6ab
doc: fix some typos in N-API docs
vsemozhetbyt Jul 1, 2018
1894d6c
repl: fix tab completion for object properties with special char
starkwang Jun 27, 2018
1d73ba8
doc: fix some links
vsemozhetbyt Jul 1, 2018
c870372
n-api: fix compiler warning
cjihrig Jun 29, 2018
5d6d6fb
tools: build all.html by combining generated HTML
rubys Jun 27, 2018
4716fd1
2018-07-04, Version 10.6.0 (Current)
targos Jul 3, 2018
e25b102
Working on v10.6.1
targos Jul 4, 2018
9cd5c0e
test: add test for missing dynamic instantiate hook
targos Jun 24, 2018
96dae83
zlib: fix memory leak for unused zlib instances
addaleax Jun 30, 2018
3a627c8
src: add context-aware init macro and doc
Jun 13, 2018
221c8bd
messaging: use actual DOMException for DataCloneError
TimothyGu Jun 25, 2018
ed774b7
messaging: fix edge cases with transferring ports
TimothyGu Jun 25, 2018
fe9888a
test: check type for Worker filename argument
Jul 1, 2018
25dac95
test: fix args passed to strictEqual
aitchkhan Jun 27, 2018
6f8ebc0
doc: unify spelling of backpressure
watson Jul 3, 2018
4fa7150
fs: support pseudofiles in promises.readFile
TimothyGu Jun 24, 2018
47b10e3
test: replace third argument with comment in strict equals
developerdavo Jun 30, 2018
f3c397c
console: implement timeLog method
targos Jun 13, 2018
ceec23e
src: remove using directives from spawn_sync.h
danbev Jul 3, 2018
c88af23
http2: pass incoming set-cookie header as array
Flarna Jun 15, 2018
021dd54
test: remove unnecessary string literals
jpospychala Jul 3, 2018
cec166e
n-api: restrict exports by version
kfarnung Dec 7, 2017
a5233c7
deps: cherry-pick 477df06 from upstream v8
devsnek Jul 3, 2018
f7aa22a
doc: improve guide text for CI runs
Trott Jul 3, 2018
9776f1c
benchmark: add n-api function args benchmark
kenny-y Jun 27, 2018
c8d5bab
doc: fix doc for napi_create_function
Jul 2, 2018
04eed23
doc: remove "note that" from fs doc
Trott Jul 3, 2018
214c608
tools: lint doc code examples in strict mode
vsemozhetbyt Jul 1, 2018
034fe19
doc: add links to inline HTML table
Trott Jun 20, 2018
24f649c
test: fix pummel/test-net-connect-memleak
Trott Jul 4, 2018
9716793
doc: add codebytere as collaborator
codebytere Jul 7, 2018
1044baf
doc: remove _Node.js style callback_
Trott Jul 7, 2018
dc84858
test,util: add missing tests and conditions
Jun 22, 2018
109c599
n-api: create functions directly
Jul 6, 2018
b8ba003
n-api: remove experimental gate from status codes
Jul 6, 2018
cd77d87
doc: improve documentation of fs sync methods
iwko Jun 10, 2018
194d195
test: fix test-tls-connect-memleak
Trott Jul 6, 2018
eda7fff
test: swap arguments in strictEqual()
sohailrajdev97 Jul 4, 2018
11e9b4e
test: fix parallel/test-tls-env-extra-ca.js
Niicck Jul 4, 2018
92d7921
lib: consolidate redundant require() calls
cjihrig Jul 7, 2018
6e1917a
doc: update changelog with 9.x EOL
ChALkeR Jun 30, 2018
51db88b
doc: fix http2stream.pushStream error doc
ChALkeR Jun 23, 2018
b758006
fs: fix fsPromises.lchmod error on non-Mac
Jun 21, 2018
07160cd
http2: order declarations in core.js
Trott Jul 6, 2018
dae7130
zlib: track memory allocated by zlib
addaleax Jun 30, 2018
122ae24
deps: icu 62.1 bump (Unicode 11, CLDR 33.1)
srl295 Jul 9, 2018
25fef3d
workers: fix invalid exit code in parent upon uncaught exception
lundibundi Jul 8, 2018
cd6601b
doc: fix HTTP res 'finish' description
tadjik1 Jul 5, 2018
577d24b
doc: fix module.children description
transitive-bullshit Jul 5, 2018
f386c0a
test: add test for dns.promises.resolve .
kakts Jul 6, 2018
c4d7413
trace_events: add process_name metadata
jasnell Jun 22, 2018
d063056
src: add --title command line argument
jasnell Jun 22, 2018
6920091
deps: upgrade to libuv 1.22.0
cjihrig Jul 10, 2018
2770778
src: make Environment::is_stopping_worker inline
maclover7 Jul 9, 2018
4f3bbfa
n-api: test uint32 truncation
Jul 9, 2018
b9bbbbe
tools: build all.json by combining generated JSON
rubys Jul 3, 2018
48b16aa
zlib: instance-ify two methods
maclover7 Jul 7, 2018
07cce88
crypto: handle OpenSSL error queue in CipherBase
tniessen Jun 12, 2018
27d17d4
trace_events: add traced_value.cc/traced_value.h
jasnell Jun 22, 2018
3096ee5
napi: add bigint support
devsnek Jun 9, 2018
e030dd7
tools: add no-duplicate-requires rule
devsnek Jul 8, 2018
c26ba08
tools: avoid global install of dmn for lint update
Trott Jul 11, 2018
3fffc7e
errors: fix undefined HTTP2 and tls errors
thatshailesh Jun 27, 2018
3d93273
doc: add OS X to instead of only macOS
XadillaX May 30, 2018
bba500d
http: fix request with option timeout and agent
killagu Jun 8, 2018
4b613d3
repl: make own properties shadow prototype properties
rubys Jun 29, 2018
c02fb88
build: enabling lto at configure
Jul 5, 2018
f46536b
test: fix timeouts when running worker tests with `--worker`
addaleax Jul 13, 2018
712809e
src: enable more detailed memory tracking
addaleax Jun 10, 2018
ada3f34
test: fix weird string error
maclover7 Jul 13, 2018
7ab6efd
doc: add policy for landing new npm releases
MylesBorins Jun 29, 2018
42d7539
deps: patch V8 to 6.7.288.49
MylesBorins Jul 9, 2018
b229129
inspector: split main thread interface from transport
eugeneo May 21, 2018
ae5d565
test: fix flaky watchFile()
Trott Jul 12, 2018
1502651
test: remove timer in fs.watchFile() test
Trott Jul 13, 2018
0de0f89
doc: add "Edit on GitHub" link
Trott Jul 7, 2018
cb69811
src: add comment on CallbackScope exception behaviour
addaleax Jul 10, 2018
aa5994f
src,tools: use https://nodejs.org URL when possible.
XhmikosR Jul 9, 2018
961f6e8
process: fix process.exitCode handling for fatalException
lundibundi Jul 10, 2018
600349a
test: refactor process/worker exitCode tests
lundibundi Jul 10, 2018
b0943a6
worker: exit after uncaught exception
lundibundi Jul 13, 2018
a68b7dd
src: add node_process.cc
jasnell Jun 3, 2018
f1b18ba
process: implement process.hrtime.bigint()
joyeecheung Jun 11, 2018
4433ecb
lib: refactor cli table
BridgeAR May 25, 2018
a09bdb5
test: improve console table error output
BridgeAR May 25, 2018
466601f
src: remove .h if -inl.h is already included
danbev Jun 18, 2018
51d613d
src: start annotating native code side effect
TimothyGu Jun 22, 2018
4ed5d1a
src: add HandleWrap::AddWrapMethods
maclover7 Jul 11, 2018
d33281b
doc: prevent some redirections
vsemozhetbyt Jul 14, 2018
ca8c960
doc: update readme with my pronouns
lance Jul 15, 2018
678313d
test: add filehandle sync() and datasync() tests
May 5, 2018
0298299
doc: add my pronoun
BridgeAR Jul 14, 2018
d42dbde
src: add iteration over all base objects to Environment
addaleax Jun 10, 2018
355c5e3
deps: cherry-pick 555c811 from upstream V8
addaleax Jun 30, 2018
5121278
src: use V8 graph heap snapshot API
addaleax Jul 10, 2018
a9a7186
src: make heap snapshot & embedder graph accessible for tests
addaleax Jun 30, 2018
7352b72
test: add heap snapshot tests
addaleax Jul 10, 2018
10f9374
doc: make markdown input compliant
rubys Jul 12, 2018
51dfebf
doc: fix vm.runInNewContext signature
targos Jul 15, 2018
1019c2d
src: fix async hooks crashing when there is no node context
xaviergonz Mar 4, 2018
238ef58
http2: remove `waitTrailers` listener after closing a stream
RidgeA Jul 11, 2018
32ad163
test: add test of fs.promises write for non-string buffers
Shagamii Jul 8, 2018
a2edb59
test: fix comment of fs.promises write
Shagamii Jul 8, 2018
4e60ce8
test: fix flaky test-debug-prompt
Trott Jul 15, 2018
73cafd8
console,util: avoid pair array generation in C++
addaleax May 18, 2018
2a0862c
console: fix timeEnd() not coercing the input
BridgeAR Jul 12, 2018
8c97ffb
assert: improve simple assert
BridgeAR Jul 2, 2018
53b587a
doc: add documentation for buffer.byteOffset
AndreasMadsen Jul 9, 2018
6bb2b5a
build: account for pure C sources in `build-addons-napi`
addaleax Jul 13, 2018
0b3c80c
http2: fix issues with aborted `respondWithFile()`s
addaleax Jun 27, 2018
b338ff5
test: add gc tracking to common API
addaleax Jul 13, 2018
174a9db
test: refactor test-net-connect-memleak, move to parallel
addaleax Jul 13, 2018
6b72583
test: refactor test-tls-connect-memleak, move to parallel
addaleax Jul 13, 2018
67908e9
test: fix build warnings in bigint N-API test
addaleax Jul 13, 2018
4ed4bf3
lib: update punycode to 2.1.1
Trott Jul 11, 2018
eef975e
test: move inspector test back to parallel, unmark flaky
addaleax Jul 13, 2018
581390c
process: split bootstrappers by threads that can run them
joyeecheung Jun 17, 2018
576f1ea
buffer: remove superfluous assignment
tniessen Jul 17, 2018
d9825c7
crypto: prevent Sign::SignFinal from crashing
tniessen Jul 14, 2018
0108ff6
test: add support for NODE_TEST_DIR on a separate mount point
aduh95 Jun 26, 2018
2922028
inspector: expose original console
mcollina Jul 4, 2018
506631a
doc: fix structure and formatting in inspector.md
vsemozhetbyt Jul 8, 2018
991bb95
2018-07-18, Version 10.7.0 (Current)
targos Jul 17, 2018
6487d8d
Working on v10.7.1
targos Jul 18, 2018
a086604
test: remove 3rd arg from to assert.strictEqual()
hectorcoronado Jul 16, 2018
a592871
http: name anonymous function in _http_common.js
kimberlake Jul 11, 2018
0f70017
tls: name anonymous function in tls.js
klacabane Jul 11, 2018
c45623a
src: avoid unnecessarily formatting a warning
tniessen Jul 16, 2018
d0c16f4
stream: named anonymous functions in _stream_readable.js
radsimu Jul 11, 2018
6af4f1f
stream: name anonymous function in _stream_writable.js
mariotsi Jul 12, 2018
d7edee4
trace_events: add more process metadata
jasnell Jul 12, 2018
580071d
tls: named anonymous functions in _tls_wrap.js
prayag21 Jul 11, 2018
b510cdc
doc: fix worker example to receive message
thefourtheye Jun 23, 2018
292aa42
test: fix faulty relpath test
devsnek May 25, 2018
ab0da57
doc: make minor improvements to collab guide
Trott Jul 18, 2018
4d78a21
doc: add missing `require` to example in http2.md
kevinsimper Jul 17, 2018
335575e
benchmark: remove arrays benchmark
psmarshall Jul 16, 2018
756dff4
test: refactor test-module-loading assertions
bpinhosilva Jul 16, 2018
41ff1bb
src: prepare for V8 Swallowed Rejection Hook
bmeurer Jul 5, 2018
c23e8b5
deps: cherry-pick 2075910 from upstream V8
targos Jul 16, 2018
ec0ff70
deps: cherry-pick 907d7bc from upstream V8
targos Jul 16, 2018
484140e
fs: stop lazy loading stream constructors
targos Jul 12, 2018
ff5c6dc
tools: properly convert .gypi in install.py
mi-ac Apr 30, 2018
d0f8af0
src: use offset calc. instead of `req->data` in node_file
addaleax Jul 16, 2018
6b925eb
tools: make getnodeversion.py python3-compatible
silverwind Jul 18, 2018
1e15581
http2: remove unused nghttp2 error list
addaleax Jul 15, 2018
4c5fc5c
build: move to `npm ci` where possible
Trott Jul 13, 2018
4f00562
build: add new benchmark targets
kenny-y Jul 13, 2018
af1530e
doc: add cjihrig pronouns
cjihrig Jul 20, 2018
f89d194
tools: improve update-eslint.sh
Trott Jul 15, 2018
46d14fc
test: refactor cluster-net-listen-relative-path
Trott Jul 18, 2018
fd5a0c7
doc: fix incorrect method name
antsmartian Jul 20, 2018
bd352f0
doc: update and improve the release guide
targos Jun 19, 2018
5606f0b
tools: create HTML docs with unified/remark/rehype
rubys Jun 23, 2018
8191563
test: allow tests to pass without internet
helio-frota Jul 20, 2018
eabe907
doc: fix descriptions of sync methods in fs.md
timruffles Jul 11, 2018
b98bf82
tools: build API TOC using raw headers
rubys Jul 21, 2018
9817e40
lib,src: replace all C++ promises with JS promises
BridgeAR May 18, 2018
bea1ee8
test: make crashOnUnhandleRejection opt-out
targos Jul 17, 2018
4f8620e
src: fix formatting of PIDs
tniessen Jul 17, 2018
d9cd171
src: remove unnecessary else
maclover7 Jul 18, 2018
be75795
src: don't store one-use strings in variable
maclover7 Jul 18, 2018
b56c8ad
deps: V8: Backport of 0dd3390 from upstream
jasnell Jul 19, 2018
cfeed2b
trace_events: add support for builtin trace
jasnell May 14, 2018
5e562fd
doc: fix sorting in the `vm.Module` section
vsemozhetbyt Jul 22, 2018
5e71d63
tools: validate apidoc links
rubys Jul 19, 2018
e8d5787
doc: document MODULE_NOT_FOUND error
jpage-godaddy Jul 19, 2018
eea199b
test: fix http2 connection abort test
addaleax Jul 17, 2018
c3d9000
doc: document http2 network error behaviour
addaleax Jul 17, 2018
3213c09
test: provide better message for orphan output documentation
rubys Jul 20, 2018
5e1ceaa
build: remove redundant Makefile target
Trott Jul 20, 2018
45816c5
n-api: guard against cond null dereference
Jul 18, 2018
c44df51
doc: link n-api module init to multi-load addons
Jul 19, 2018
50ccda2
build: increase macOS minimum supported version
targos Jul 19, 2018
623ef49
test: address flaky worker test
Trott Jul 19, 2018
96bb605
doc: add node-test-commit-custom-suites to docs
Trott Jul 21, 2018
f868415
deps: cherry-pick 804a693 from upstream V8
Jul 17, 2018
5b0c451
doc: add guide for updating N-API API surface
digitalinfinity Jul 19, 2018
36f8b82
tools: flatten apidoc headers
rubys Jul 22, 2018
478dbee
doc: replace deprecated CI job
vsemozhetbyt Jul 22, 2018
793a5bb
test: don't fail http2 abort test if 'data' is called multiple times
rubys Jul 21, 2018
af6b824
test: fix unreliable test-fs-stat-bigint
Jul 23, 2018
f6606bf
src: add missing cmath include to traced_value.cc
addaleax Jul 21, 2018
4958501
test: remove timeout from test-pipe-stream
addaleax Jul 16, 2018
2a0fa47
doc: do not advise to cancel full CI on onboarding
vsemozhetbyt Jul 25, 2018
254aa83
tools: remove obsolete entries from license
Trott Jul 25, 2018
61ae592
test: remove setTimeout in test-net-connect-unref
conectado Jul 25, 2018
67d7a15
doc: fix typo in releases.md
vbob Jul 26, 2018
62024b6
build: create V8 code cache after script is run
joyeecheung Jun 27, 2018
e0f3d57
build,win,v8: allow precompiling objects-inl.h
joaocgreis Jul 11, 2018
80b5c91
src: add proper MemoryInfoName to wrappers
joyeecheung Jul 22, 2018
baf3027
lib: remove usc-2 encoding
mscdex Jul 25, 2018
1f9570b
doc: add missing worker error
Jul 23, 2018
ce527d9
tools: define xrange() in Python 3
Jul 23, 2018
2f3a28d
src: use available ReqWrap instance for libuv req
maclover7 Jul 26, 2018
e0336b2
src: fix may be uninitialized warning in n-api
mhdawson Jul 19, 2018
b5b7438
dgram: hide _healthCheck() and _stopReceiving()
cjihrig Jul 21, 2018
ae17d18
dgram: hide underscored Socket properties
cjihrig Jul 21, 2018
98ef8cf
dgram: make _createSocketHandle() internal only
cjihrig Jul 21, 2018
40fedd3
dgram: add getters/setters for private APIs
cjihrig Jul 21, 2018
98d461e
tools: update ESLint to 5.2.0
hiroppy Jul 23, 2018
337b2df
http2: release request()'s "connect" event listener after it runs
ide Jul 21, 2018
87ed6e6
deps: upgrade npm to 6.2.0
zkat Jul 18, 2018
b520216
tools: update cpplint to check for inline headers
ryzokuken Jun 25, 2018
0151486
tools: patch gyp to avoid xcrun errors
ryzokuken Jun 25, 2018
2c95b96
src: remove calls to deprecated v8 functions (NewFromUtf8)
ryzokuken Jul 21, 2018
6b6a26b
src: use kInternalized instead of kNormal
ryzokuken Jul 21, 2018
2548f75
src: use UTF-8 for naming interfaces in unix
ryzokuken Jul 21, 2018
d91742a
fs: reduce memory retention when streaming small files
addaleax Jul 25, 2018
4510ca3
test: add tests for fs/promises chown functions
May 7, 2018
fe1823d
test: remove custom AsyncHooksTestConfiguration
maclover7 Jul 28, 2018
f4b6031
doc: clarify text about internal module changes
Jul 30, 2018
62fd845
test: improve inspect readability
BridgeAR Jul 2, 2018
b5ae339
doc: add pronouns to readme
not-an-aardvark Jul 31, 2018
02e665c
tools,test: remove unused config hooks
maclover7 Jul 28, 2018
9a88fe4
vm: rename vm.Module to vm.SourceTextModule
devsnek Jul 28, 2018
3d05d82
test: improve assertions in child-process-execsync
bhavayAnand9 Jul 27, 2018
8799f43
http: revert "http: always emit close on req and res"
targos Jul 14, 2018
89f483b
2018-08-01, Version 10.8.0 (Current)
targos Jul 31, 2018
6d1e9be
Hacks
Jan 12, 2018
36d8a09
Add README.md
Jan 12, 2018
63c01e3
Bugfix android debug build
Jan 15, 2018
20d4ff7
Bugfix V8 android crash dump output
Jan 15, 2018
999a3cd
Update c-ares lib dep
Jan 16, 2018
e6840a1
Shard node tick loop
Jan 16, 2018
400bb0c
Update NodeService environment initialization API
Jan 16, 2018
5361a50
Bugfix NodeService allocator premature destruction
Jan 17, 2018
649e5b0
Bugfix NodeService Scope method context scoping
Jan 17, 2018
5d3277d
Add timeout tick support
Jan 21, 2018
a059123
Timer debugging
Jan 21, 2018
384ea2b
Major API update
Jan 22, 2018
57fa3a9
Use mutex-based scope interrupts
Jan 22, 2018
fbc9ac0
Add node binary build support
Jan 24, 2018
4dd2f6d
Clean up binary bootstrap
Jan 24, 2018
4eafcdb
Update README.md
Jan 24, 2018
e6b4d12
Cleanups
Feb 7, 2018
5bf43d8
Bugfix uv.h build include
Feb 7, 2018
4ba39ef
builds using ndk for arm64; using nodev10.8.0; updated NodeService
chrislatorres Aug 4, 2018
8a6332b
builds using NDK
chrislatorres Aug 10, 2018
02b0975
Rename make-android to build-android
chrislatorres Aug 10, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
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.
4 changes: 2 additions & 2 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ insert_final_newline = true
[vcbuild.bat]
end_of_line = crlf

[{lib,src,test}/**.js]
[{lib,test,tools}/**.js]
indent_style = space
indent_size = 2

Expand All @@ -29,7 +29,7 @@ indent_size = 2
indent_style = tab
indent_size = 8

[{deps,tools}/**]
[{deps}/**]
indent_style = ignore
indent_size = ignore
end_of_line = ignore
Expand Down
2 changes: 1 addition & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ test/addons/??_*
test/es-module/test-esm-dynamic-import.js
test/fixtures
test/message/esm_display_syntax_error.mjs
tools/node_modules
tools/icu
tools/remark-*
node_modules
benchmark/tmp
doc/**/*.js
!.eslintrc.js
270 changes: 270 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,270 @@
'use strict';

const Module = require('module');
const path = require('path');

const NodePlugin = require('./tools/node_modules/eslint-plugin-node-core');
NodePlugin.RULES_DIR = path.resolve(__dirname, 'tools', 'eslint-rules');

const ModuleFindPath = Module._findPath;
const hacks = [
'eslint-plugin-node-core',
'eslint-plugin-markdown',
'babel-eslint',
];
Module._findPath = (request, paths, isMain) => {
const r = ModuleFindPath(request, paths, isMain);
if (!r && hacks.includes(request)) {
try {
return require.resolve(`./tools/node_modules/${request}`);
} catch (err) {
return require.resolve(
`./tools/node_modules/eslint/node_modules/${request}`);
}
}
return r;
};

module.exports = {
root: true,
plugins: ['markdown', 'node-core'],
env: { node: true, es6: true },
parser: 'babel-eslint',
parserOptions: { sourceType: 'script' },
overrides: [
{
files: [
'doc/api/esm.md',
'*.mjs',
'test/es-module/test-esm-example-loader.js',
],
parserOptions: { sourceType: 'module' },
},
{
files: ['**/*.md'],
parserOptions: { ecmaFeatures: { impliedStrict: true } },
rules: { strict: 'off' },
},
],
rules: {
// ESLint built-in rules
// http://eslint.org/docs/rules
'accessor-pairs': 'error',
'array-callback-return': 'error',
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', { before: true, after: true }],
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-dangle': ['error', 'only-multiline'],
'comma-spacing': 'error',
'comma-style': 'error',
'computed-property-spacing': 'error',
'constructor-super': '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 }],
'indent': ['error', 2, {
ArrayExpression: 'first',
CallExpression: { arguments: 'first' },
FunctionDeclaration: { parameters: 'first' },
FunctionExpression: { parameters: 'first' },
MemberExpression: 'off',
ObjectExpression: 'first',
SwitchCase: 1,
}],
'key-spacing': ['error', { mode: 'strict' }],
'keyword-spacing': 'error',
'linebreak-style': ['error', 'unix'],
'max-len': ['error', {
code: 80,
ignorePattern: '^// Flags:',
ignoreRegExpLiterals: true,
ignoreUrls: true,
tabWidth: 2,
}],
'new-parens': 'error',
'no-class-assign': 'error',
'no-confusing-arrow': 'error',
'no-const-assign': '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-duplicate-case': 'error',
'no-duplicate-imports': 'error',
'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-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-obj-calls': 'error',
'no-octal': 'error',
'no-path-concat': 'error',
'no-proto': 'error',
'no-redeclare': 'error',
'no-restricted-modules': ['error', 'sys'],
'no-restricted-properties': [
'error',
{
object: 'assert',
property: 'deepEqual',
message: 'Use assert.deepStrictEqual().',
},
{
object: 'assert',
property: 'notDeepEqual',
message: 'Use assert.notDeepStrictEqual().',
},
{
object: 'assert',
property: 'equal',
message: 'Use assert.strictEqual() rather than assert.equal().',
},
{
object: 'assert',
property: 'notEqual',
message: 'Use assert.notStrictEqual() rather than assert.notEqual().',
},
{
property: '__defineGetter__',
message: '__defineGetter__ is deprecated.',
},
{
property: '__defineSetter__',
message: '__defineSetter__ is deprecated.',
}
],
/* eslint-disable max-len */
// If this list is modified, please copy the change to lib/.eslintrc.yaml
'no-restricted-syntax': [
'error',
{
selector: "CallExpression[callee.object.name='assert'][callee.property.name='doesNotThrow']",
message: 'Please replace `assert.doesNotThrow()` and add a comment next to the code instead.'
},
{
selector: "CallExpression[callee.object.name='assert'][callee.property.name='rejects'][arguments.length<2]",
message: 'assert.rejects() must be invoked with at least two arguments.',
},
{
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])",
message: 'Use an object as second argument of assert.throws()',
},
{
selector: "CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.length<2]",
message: 'assert.throws() must be invoked with at least two arguments.',
},
{
selector: "CallExpression[callee.name='setTimeout'][arguments.length<2]",
message: 'setTimeout() must be invoked with at least two arguments.',
},
{
selector: "CallExpression[callee.name='setInterval'][arguments.length<2]",
message: 'setInterval() must be invoked with at least 2 arguments.',
},
{
selector: 'ThrowStatement > CallExpression[callee.name=/Error$/]',
message: 'Use new keyword when throwing an Error.',
}
],
/* eslint-enable max-len, quotes */
'no-return-await': 'error',
'no-self-assign': 'error',
'no-self-compare': '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-unused-labels': 'error',
'no-unused-vars': ['error', { args: 'none' }],
'no-use-before-define': ['error', {
classes: true,
functions: false,
variables: false,
}],
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-useless-escape': 'error',
'no-useless-return': 'error',
'no-void': 'error',
'no-whitespace-before-property': 'error',
'no-with': 'error',
'object-curly-spacing': ['error', 'always'],
'one-var': ['error', { initialized: 'never' }],
'one-var-declaration-per-line': 'error',
'operator-linebreak': ['error', 'after'],
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
'quotes': ['error', 'single', { avoidEscape: true }],
'quote-props': ['error', 'consistent'],
'rest-spread-spacing': 'error',
'semi': 'error',
'semi-spacing': 'error',
'space-before-blocks': ['error', 'always'],
'space-before-function-paren': ['error', {
anonymous: 'never',
named: 'never',
asyncArrow: 'always',
}],
'space-in-parens': ['error', 'never'],
'space-infix-ops': 'error',
'space-unary-ops': 'error',
'spaced-comment': ['error', 'always', {
'block': { 'balanced': true },
'exceptions': ['-']
}],
'strict': ['error', 'global'],
'symbol-description': 'error',
'template-curly-spacing': 'error',
'unicode-bom': 'error',
'use-isnan': 'error',
'valid-typeof': 'error',

// Custom rules from eslint-plugin-node-core
'node-core/no-unescaped-regexp-dot': 'error',
'node-core/no-duplicate-requires': 'error',
},
globals: {
Atomics: false,
BigInt: false,
BigInt64Array: false,
BigUint64Array: false,
COUNTER_HTTP_CLIENT_REQUEST: false,
COUNTER_HTTP_CLIENT_RESPONSE: false,
COUNTER_HTTP_SERVER_REQUEST: false,
COUNTER_HTTP_SERVER_RESPONSE: false,
COUNTER_NET_SERVER_CONNECTION: false,
COUNTER_NET_SERVER_CONNECTION_CLOSE: false,
DTRACE_HTTP_CLIENT_REQUEST: false,
DTRACE_HTTP_CLIENT_RESPONSE: false,
DTRACE_HTTP_SERVER_REQUEST: false,
DTRACE_HTTP_SERVER_RESPONSE: false,
DTRACE_NET_SERVER_CONNECTION: false,
DTRACE_NET_STREAM_END: false
},
};
Loading