Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
193 commits
Select commit Hold shift + click to select a range
610cac2
doc: add missing "changes" key in YAML comment
lpinca Feb 6, 2018
e7cb694
stream: always reset awaitDrain when emitting data
addaleax Feb 2, 2018
ee67dd0
test: add test for stream unpipe with 'data' listeners
addaleax Feb 2, 2018
bff5d5b
tools: add FileHandle to doc/type-parser.js
vsemozhetbyt Feb 6, 2018
12ae334
util: skip type checks in internal getSystemErrorName
joyeecheung Feb 3, 2018
0303848
fs: do not call new when creating uvException
joyeecheung Feb 3, 2018
c0762c2
errors: move error creation helpers to errors.js
joyeecheung Feb 3, 2018
d797775
tools: add fixer for prefer-assert-iferror.js
shobhitchittora Oct 31, 2017
e542920
test: do not check TXT content in test-dns-any
joyeecheung Feb 3, 2018
b8f7f84
test: fix flaky test-http2-session-unref
apapirovski Feb 5, 2018
93df116
lib,doc: revert format name to cjs over commonjs
guybedford Feb 6, 2018
4ac7be9
doc: be more explicit in the sypnosis
timotew Jan 4, 2018
5ecd2e1
test: improve error message output
bshankar Feb 1, 2018
af5632e
readline: use Date.now() and move test to parallel
apapirovski Feb 4, 2018
d0e4d4e
deps: patch V8 to 6.4.388.42
MylesBorins Feb 5, 2018
1573e45
src: move GetNow to Environment
apapirovski Feb 4, 2018
92ba624
tls: provide now value from C++
apapirovski Feb 4, 2018
ffb385b
test: refactor test-http-abort-before-end
cjihrig Feb 1, 2018
f783d61
doc: fix link in https.md
vsemozhetbyt Feb 7, 2018
259f62a
doc: fix MDN links to avoid redirections
vsemozhetbyt Feb 7, 2018
8ccd320
src: don't abort when package.json is a directory
bnoordhuis Jan 20, 2018
b505716
build: do not suppress output in make doc-only
joyeecheung Feb 1, 2018
d8f7338
fs: throw errors on invalid paths synchronously
joyeecheung Jan 23, 2018
87b9bce
stream: always defer readable in EOF when sync
mcollina Feb 7, 2018
e9b5b4f
stream: fix misleading error message
lpinca Feb 6, 2018
b1c6ecb
fs: fix misplaced errors in fs.symlinkSync
joyeecheung Feb 3, 2018
1b05d7b
timers: remove unused variable
apapirovski Feb 5, 2018
568b6a5
timers: be more defensive with intervals
apapirovski Feb 5, 2018
c11cb03
timers: async track unref timers
apapirovski Feb 5, 2018
8204b0f
timers: simplify clearTimeout & clearInterval
apapirovski Feb 5, 2018
86c659b
stream: add a test case for the underlying cause.
Feb 5, 2018
809af1f
benchmark: improve compare output
BridgeAR Feb 5, 2018
d3569b6
doc: remove **Note:** tags
jasnell Feb 6, 2018
ef78a1e
net: remove Socket.prototoype.read
addaleax Feb 4, 2018
6963a93
test: fix flaky timers-block-eventloop test
apapirovski Feb 4, 2018
fe442f6
test: properly tag anonymous namespaces
mhdawson Feb 5, 2018
4927d94
doc: fix description of createDecipheriv
tniessen Feb 8, 2018
95a35bc
doc: add missing meta for createCipheriv
tniessen Feb 8, 2018
240f9a2
process: use linked reusable queue for ticks
mafintosh Feb 6, 2018
da97a47
benchmark: add stream.pipe benchmarks
mafintosh Feb 6, 2018
14bc3e2
domain: runtime deprecate MakeCallback
AndreasMadsen Feb 7, 2018
cccddc5
assert: fix throws trace
BridgeAR Feb 6, 2018
8e70811
doc: fix links in YAML metadata of assert.md
vsemozhetbyt Feb 9, 2018
eacc88c
doc: add devsnek to collaborators
devsnek Feb 9, 2018
dbd1d1d
doc: fix arg definition in fs
apapirovski Feb 9, 2018
e5f101f
http2: add req and res options to server creation
Oct 5, 2017
0f9efef
timers: refactor timer list processing
apapirovski Feb 5, 2018
523a155
async_hooks: deprecate unsafe emit{Before,After}
ofrobots Feb 1, 2018
edffad0
test: add url type check in Module options
Feb 8, 2018
37c88f0
doc: fix links to Style Guide and CPP Style Guide
justin0022 Feb 9, 2018
9b4aa78
test: refactor assert test
BridgeAR Feb 6, 2018
b8f47b2
src: add "icu::" prefix before ICU symbols
srl295 Feb 8, 2018
6007a9c
https: add extra options to Agent#getName()
princjef Oct 17, 2017
de848ac
repl: refactor tests to not rely on timing
bmeck Dec 22, 2017
180af17
string_decoder: reimplement in C++
addaleax Feb 1, 2018
93bbe4e
deps,src: align ssize_t ABI between Node & nghttp2
addaleax Feb 4, 2018
1729af2
test: convert new tests to use error types
jackhorton Feb 5, 2018
2870867
src: resolve issues reported by coverity
cjihrig Feb 7, 2018
df2f4ad
src: replace var for let / const.
estrada9166 Feb 8, 2018
c5c9515
fs: fix stack overflow in fs.readdirSync
joyeecheung Feb 8, 2018
cf52ab1
test: remove unused using declarations
danbev Feb 8, 2018
38bac42
crypto: allow passing null as IV unless required
tniessen Feb 7, 2018
fafd5b0
doc: add history for url.parse
styfle Feb 9, 2018
2bead4b
doc: fix exporting a function example
Feb 8, 2018
d1e80e7
buffer: simplify check size in assertSize
Connormiha Feb 8, 2018
4a1a4bf
build: no longer have v8-debug.h as dependency.
hashseed Feb 9, 2018
540cbf8
doc: add error check to fs example
evanlucas Feb 9, 2018
01d0491
test: fix flaky repl-timeout-throw
santigimeno Feb 10, 2018
3e8af96
test: formalize exposure of internal bindings
devsnek Feb 10, 2018
a1bab82
doc: mark NAPI_AUTO_LENGTH as code
tniessen Feb 10, 2018
316846b
url: simplify constructor URLSearchParams. Remove needless check null
Connormiha Feb 10, 2018
2aa3e3b
timers: fix enroll deprecation wording
apapirovski Feb 10, 2018
bd4773a
module: use undefined if no main
Trott Feb 6, 2018
9f6a565
async_hooks: rename PromiseWrap.parentId
ofrobots Feb 8, 2018
ba944b1
lib: provide proper deprecation code
BridgeAR Feb 10, 2018
1a5f670
tools: fix eslint isRequired
BridgeAR Feb 12, 2018
60c9ad7
repl: remove deprecated NODE_REPL_HISTORY_FILE
BridgeAR Jun 22, 2017
1fc373b
Revert "repl: refactor tests to not rely on timing"
BridgeAR Feb 11, 2018
656a5d0
assert: fix infinite loop
BridgeAR Feb 7, 2018
0cdc877
assert: show proper differences
BridgeAR Feb 7, 2018
377cfd6
http2: use `_final` instead of `on('finish')`
addaleax Feb 7, 2018
2287dea
fs: make URL paths no longer experimental
jasnell Feb 6, 2018
c3ff899
test: add useful info to error msg and refactor
chinhuang007 Feb 2, 2018
18e7284
test: fix and improve error message
kcaulfield94 Feb 1, 2018
a27e443
test: fix missing param in benchmark-timers
apapirovski Feb 12, 2018
3d53848
doc: add mmarchini to collaborators
Feb 12, 2018
6abce37
path: replace "magic" numbers by readable constants
daynin Feb 8, 2018
b6000d8
deps: patch V8 to 6.4.388.44
MylesBorins Feb 9, 2018
e782715
string_decoder: fix regressions
apapirovski Feb 12, 2018
60e612d
2018-01-13, Version 6.13.0 'Boron' (LTS)
MylesBorins Jan 24, 2018
80ac941
doc: make linter happy
addaleax Feb 13, 2018
e9ba0cf
test: add crypto check to test-benchmark-tls
danbev Feb 12, 2018
18d23aa
src: do not redefine private for GenDebugSymbols
joyeecheung Feb 8, 2018
b2e20b0
fs: extract binding error handling into a helper
joyeecheung Feb 8, 2018
82c43ae
tls_wrap: use DoTryWrite()
addaleax Jan 28, 2018
e1271c0
src: only set JSStreamWrap write req after `write()`
addaleax Feb 8, 2018
0ed9ea8
test: make sure WriteWrap tests are actually async
addaleax Feb 8, 2018
0e7b612
src: refactor WriteWrap and ShutdownWraps
addaleax Feb 8, 2018
f1fc426
module: support main w/o extension, pjson cache
guybedford Feb 12, 2018
755e07c
test: remove unnecessary timer
cjihrig Feb 11, 2018
92c86fd
test: add multiline repl input regression test
cjihrig Feb 11, 2018
7dffabb
doc: move Fedor to TSC Emeritus
MylesBorins Feb 13, 2018
d8ec49e
src: update trace event macros to v8 6.4 version
kjin Dec 13, 2017
138bdf6
doc: update crypo Certficate class.
antoine-amara Feb 11, 2018
28dc56d
fs: fix typo in promises.lchmod & lchown
Feb 14, 2018
cfad441
build,win: replace run-python subroutine with single find_python call
seishun Feb 7, 2018
baf8495
http: process 100, 102-199 according to specs.
Jan 8, 2018
faeee11
stream: readable continues to read when `push('')`
Jan 17, 2018
a16081c
src: use non-deprecated V8 microtasks API
targos Feb 13, 2018
3b9cc42
module: remove unused code in module.js
Trott Feb 13, 2018
efb3259
src: deprecate legacy node::MakeCallback
ofrobots Jan 25, 2018
42c14c5
src: set thread local env in CreateEnvironment
danbev Feb 5, 2018
759a083
doc: update buffer examples
BridgeAR Feb 12, 2018
d8d84ee
fs: replace magic numbers by named constants
daynin Feb 13, 2018
4d3c3f0
tools: enable no-unsafe-finally
BridgeAR Feb 13, 2018
caee112
test: remove assert.doesNotThrow()
BridgeAR Feb 9, 2018
644fdd6
test: minor refactoring
BridgeAR Feb 10, 2018
15bb843
tools: add assert.doesNotThrow eslint rule
BridgeAR Feb 12, 2018
1bd3208
doc: fix deprecation number
BridgeAR Feb 16, 2018
703e37c
process: deprecate process.assert()
BridgeAR Feb 8, 2018
3e1e450
fs: use Persistent::Reset() for resetting handles
addaleax Feb 8, 2018
ec9e792
test: add lib path env when node_shared=true
yhwang Feb 2, 2018
916cfec
lib,src: audit process.env in lib/ for setuid binary
j0t3x Feb 1, 2018
bd4350c
lib: set process.execPath on OpenBSD
qbit Feb 3, 2018
ef0e92e
test: update a few tests to work on OpenBSD
qbit Feb 3, 2018
43b8ce4
buffer: remove obsolete NaN check
BridgeAR Feb 12, 2018
96c57fb
lib: switch to Number.isNaN
BridgeAR Feb 12, 2018
941bc93
test: wrap countdown callback in common.mustCall
Bamieh Nov 21, 2017
f25104e
doc: remove extra space in README.md
Feb 16, 2018
b74a6da
child_process: fix stdio sockets creation
santigimeno Feb 6, 2018
befe675
test: try to connect after server was closed
Leko Jan 19, 2018
85893af
test: reduce benchmark test run time
juggernaut451 Feb 14, 2018
3c29adb
test: make tls test more rigorous
bnoordhuis Feb 15, 2018
862389b
http: simplify checkInvalidHeaderChar
sethbrenith Jan 25, 2018
2960096
test: refactor of test-tls-over-http-tunnel
juggernaut451 Feb 14, 2018
c86fe51
module: replace magic numbers by constants
daynin Feb 14, 2018
181209c
test: refactor parallel/test-tls-addca
juggernaut451 Feb 15, 2018
36386dc
deps: patch V8 to 6.4.388.45
MylesBorins Feb 13, 2018
463d1a4
test,benchmark,doc: enable dot-notation rule
BridgeAR Feb 13, 2018
ff471da
doc: fix a typo in util.isDeepStrictEqual
Feb 14, 2018
9a18b0e
doc: add missing `Returns` in fs & util
Feb 14, 2018
61e3e6d
doc: note that linting is required in releases.md
gibfahn Feb 14, 2018
7748865
module: fix main lookup regression from #18728
guybedford Feb 14, 2018
e9ac80b
async_hooks: clean up usage in internal code
apapirovski Feb 11, 2018
69f7ce9
doc: activate `no-multiple-empty-lines` rule
BridgeAR Feb 13, 2018
94e8d2a
test: fix unrelated variable name changes
apapirovski Feb 16, 2018
755d805
doc: add fs declarations to stream doc js examples
prog1dev Feb 15, 2018
cbe6d5c
doc: warn against concurrent http2stream.respondWithFD
addaleax Feb 13, 2018
197258b
src: changing node_file's usage of v8::Resolver
MSLaguana Feb 13, 2018
6ab288f
test: fix warnings in addon tests
ofrobots Feb 16, 2018
1fd6987
test: add common.skipIfEslintMissing
MylesBorins Feb 15, 2018
760f86c
test: refactor parallel/test-tls-0-dns-altname
juggernaut451 Feb 15, 2018
6c9774f
doc: add Yihong Wang to collaborators
yhwang Feb 16, 2018
2620358
fs: move utility functions to internal/fs
targos Feb 14, 2018
513d939
fs: move fs.promises API to fs/promises
targos Feb 14, 2018
38f04d4
tools, test: fix prof polyfill readline
killagu Feb 11, 2018
99d693d
lib: replace `eval` with `vm.runInThisContext`
MylesBorins Feb 7, 2018
590eace
net: simplify net.Socket#end()
addaleax Feb 11, 2018
b404aa5
path: replace duplicate conditions by functions
daynin Feb 10, 2018
1bda746
test: stdio pipe behavior tests
bzoz Feb 7, 2018
2fbe15b
doc: fix minor typos in GOVERNANCE.md
Trott Feb 17, 2018
8123232
deps: patch V8 to 6.4.388.46
MylesBorins Feb 16, 2018
33103e9
test: refactor stream-*-constructor-set-methods
lpinca Feb 16, 2018
ea1a076
doc: mark accessing IPC channel fd as undefined
bzoz Dec 8, 2017
ef7f5a1
doc: refactor manpage to use mdoc(7) macros
Alhadis Feb 3, 2018
c9b42c4
test: refactor parallel/test-tls-pause
juggernaut451 Feb 11, 2018
7ca4ca8
lib: allow process kill by signal number
sam-github Nov 12, 2017
f242d4b
tools: auto fix custom crypto-check eslint rule
shobhitchittora Oct 31, 2017
5156342
tools: custom eslint autofix for inspector-check.js
shobhitchittora Oct 31, 2017
472cde6
fs: remove useless comments which duplicate names of variables
daynin Feb 12, 2018
12412ef
fs: fix potential segfault in async calls
joyeecheung Feb 16, 2018
e91ea21
src: add nullptr check for session in DEBUG macro
danbev Feb 16, 2018
f6721c2
stream: writable.end should return this.
mcollina Feb 14, 2018
8118da7
http: OutgoingMessage.end() should return this
mcollina Feb 14, 2018
3d93f39
http2: make response.end() return this
mcollina Feb 14, 2018
30f89df
build: add node_lib_target_name to cctest deps
danbev Feb 5, 2018
28f3ffb
timers: add helper fn for async init
apapirovski Feb 12, 2018
de0ed84
tls: tls_wrap causes debug assert in vector
kfarnung Feb 17, 2018
469036a
doc: fix typo in http2.md
vsemozhetbyt Feb 19, 2018
2caa1f5
doc: fix broken link in pull-requests.md
justin0022 Feb 19, 2018
e83adf8
doc: improved documentation for fs.unlink()
dustinnewman Feb 18, 2018
808c058
test: http2 client operations after destroy
trivikr Feb 18, 2018
1e57a8d
test: http2 client ping errors
trivikr Feb 18, 2018
0089860
test: http2 client settings invalid callback
trivikr Feb 18, 2018
92bf249
test: move getTTYfd() to common helpers
Fishrock123 Feb 16, 2018
7514eb3
test: actually test tty `getColorDepth()`
Fishrock123 Feb 16, 2018
6934792
lint: move eslint to new plugin system
devsnek Feb 4, 2018
d28edf9
doc: fix nits in tools/doc/README.md
vsemozhetbyt Feb 19, 2018
1b83a9d
doc: update onboarding.md for faster exercise completion
Trott Feb 18, 2018
e53275d
doc: fix minor grammar/typographical issues in onboarding.md
Trott Feb 18, 2018
6da9315
build: add cmake support
bnoordhuis Feb 21, 2018
fc1b2c6
tools: print iculslocs error messages to stderr
bnoordhuis Feb 21, 2018
726ba1c
tools: improve iculslocs error messages
bnoordhuis Feb 21, 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
  •  
  •  
  •  
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ tools/remark-*
node_modules
benchmark/tmp
doc/**/*.js
!.eslintrc.js
264 changes: 264 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,264 @@
'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' },
},
],
rules: {
// Possible Errors
// http://eslint.org/docs/rules/#possible-errors
'for-direction': 'error',
'no-control-regex': 'error',
'no-debugger': 'error',
'no-dupe-args': 'error',
'no-dupe-keys': 'error',
'no-duplicate-case': '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-func-assign': 'error',
'no-invalid-regexp': 'error',
'no-irregular-whitespace': 'error',
'no-obj-calls': 'error',
'no-template-curly-in-string': 'error',
'no-unexpected-multiline': 'error',
'no-unreachable': 'error',
'no-unsafe-negation': 'error',
'use-isnan': 'error',
'valid-typeof': 'error',

// Best Practices
// http://eslint.org/docs/rules/#best-practices
'accessor-pairs': 'error',
'array-callback-return': 'error',
'dot-location': ['error', 'property'],
eqeqeq: ['error', 'smart'],
'no-fallthrough': 'error',
'no-global-assign': 'error',
'no-multi-spaces': ['error', { ignoreEOLComments: true }],
'no-octal': 'error',
'no-proto': 'error',
'no-redeclare': 'error',
'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.astrictEqual() 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.',
}
],
'no-return-await': 'error',
'no-self-assign': 'error',
'no-throw-literal': 'error',
'no-unused-labels': 'error',
'no-useless-call': 'error',
'no-useless-concat': 'error',
'no-useless-escape': 'error',
'no-useless-return': 'error',
'no-void': 'error',
'no-with': 'error',

// Strict Mode
// http://eslint.org/docs/rules/#strict-mode
strict: ['error', 'global'],

// Variables
// http://eslint.org/docs/rules/#variables
'no-delete-var': 'error',
'no-undef': 'error',
'no-unused-vars': ['error', { args: 'none' }],
'no-use-before-define': ['error', {
classes: true,
functions: false,
variables: false,
}],

// Node.js and CommonJS
// http://eslint.org/docs/rules/#nodejs-and-commonjs
'no-mixed-requires': 'error',
'no-new-require': 'error',
'no-path-concat': 'error',
'no-restricted-modules': ['error', 'sys'],

// Stylistic Issues
// http://eslint.org/docs/rules/#stylistic-issues'
'block-spacing': 'error',
'brace-style': ['error', '1tbs', { allowSingleLine: true }],
'comma-dangle': ['error', 'only-multiline'],
'comma-spacing': 'error',
'comma-style': 'error',
'computed-property-spacing': 'error',
'eol-last': '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: 'minimum' }],
'keyword-spacing': 'error',
'linebreak-style': ['error', 'unix'],
'max-len': ['error', {
code: 80,
ignorePattern: '^// Flags:',
ignoreRegExpLiterals: true,
ignoreUrls: true,
tabWidth: 2,
}],
'new-parens': 'error',
'no-lonely-if': 'error',
'no-mixed-spaces-and-tabs': 'error',
'no-multiple-empty-lines': ['error', { max: 2, maxEOF: 0, maxBOF: 0 }],
/* eslint-disable max-len, quotes */
'no-restricted-syntax': [
'error',
{
selector: `CallExpression[callee.object.name='assert'][callee.property.name='throws'][arguments.1.type='Literal']:not([arguments.1.regex])`,
message: 'use a regular expression for 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-tabs': 'error',
'no-trailing-spaces': 'error',
'object-curly-spacing': ['error', 'always'],
'one-var-declaration-per-line': 'error',
'operator-linebreak': ['error', 'after'],
quotes: ['error', 'single', 'avoid-escape'],
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',
'unicode-bom': 'error',

// ECMAScript 6
// http://eslint.org/docs/rules/#ecmascript-6
'arrow-parens': ['error', 'always'],
'arrow-spacing': ['error', { before: true, after: true }],
'constructor-super': 'error',
'no-class-assign': 'error',
'no-confusing-arrow': 'error',
'no-const-assign': 'error',
'no-dupe-class-members': 'error',
'no-new-symbol': 'error',
'no-this-before-super': 'error',
'prefer-const': ['error', { ignoreReadBeforeAssign: true }],
'rest-spread-spacing': 'error',
'symbol-description': 'error',
'template-curly-spacing': 'error',

// Custom rules in from eslint-plugin-node-core
'node-core/no-unescaped-regexp-dot': 'error',
},
globals: {
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,
LTTNG_HTTP_CLIENT_REQUEST: false,
LTTNG_HTTP_CLIENT_RESPONSE: false,
LTTNG_HTTP_SERVER_REQUEST: false,
LTTNG_HTTP_SERVER_RESPONSE: false,
LTTNG_NET_SERVER_CONNECTION: false,
LTTNG_NET_STREAM_END: false,
internalBinding: false,
},
};
Loading