diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index aaebadca125814..437aa575645ad6 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -1,4 +1,6 @@ rules: + dot-notation: error + # Custom rules in tools/eslint-rules require-buffer: error buffer-constructor: error diff --git a/lib/inspector.js b/lib/inspector.js index 5aacdde26bfc29..9f45f4797e6957 100644 --- a/lib/inspector.js +++ b/lib/inspector.js @@ -68,7 +68,7 @@ class Session extends EventEmitter { const id = this[nextIdSymbol]++; const message = { id, method }; if (params) { - message['params'] = params; + message.params = params; } if (callback) { this[messageCallbacksSymbol].set(id, callback); diff --git a/lib/internal/util.js b/lib/internal/util.js index c507c493d1ee3a..8fc040d06714dc 100644 --- a/lib/internal/util.js +++ b/lib/internal/util.js @@ -6,8 +6,8 @@ const { signals } = process.binding('constants').os; const { createPromise, promiseResolve, promiseReject } = binding; -const kArrowMessagePrivateSymbolIndex = binding['arrow_message_private_symbol']; -const kDecoratedPrivateSymbolIndex = binding['decorated_private_symbol']; +const kArrowMessagePrivateSymbolIndex = binding.arrow_message_private_symbol; +const kDecoratedPrivateSymbolIndex = binding.decorated_private_symbol; const noCrypto = !process.versions.openssl; const experimentalWarnings = new Set(); diff --git a/lib/module.js b/lib/module.js index c96d5d51678494..ed9d1a78d476a1 100644 --- a/lib/module.js +++ b/lib/module.js @@ -721,7 +721,7 @@ Module._initPaths = function() { paths.unshift(path.resolve(homeDir, '.node_modules')); } - var nodePath = process.env['NODE_PATH']; + var nodePath = process.env.NODE_PATH; if (nodePath) { paths = nodePath.split(path.delimiter).filter(function(path) { return !!path;