Skip to content

Commit

Permalink
lib: enable dot-notation eslint rule
Browse files Browse the repository at this point in the history
PR-URL: #18007
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Eugene Ostroukhov <eostroukhov@google.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Jon Moss <me@jonathanmoss.me>
  • Loading branch information
apapirovski authored and MylesBorins committed Feb 27, 2018
1 parent 4879038 commit 969c39e
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions lib/.eslintrc.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
rules:
dot-notation: error

# Custom rules in tools/eslint-rules
require-buffer: error
buffer-constructor: error
Expand Down
6 changes: 3 additions & 3 deletions lib/_debugger.js
Original file line number Diff line number Diff line change
Expand Up @@ -742,9 +742,9 @@ function Interface(stdin, stdout, args) {
useGlobal: false,
ignoreUndefined: true
};
if (parseInt(process.env['NODE_NO_READLINE'], 10)) {
if (parseInt(process.env.NODE_NO_READLINE, 10)) {
opts.terminal = false;
} else if (parseInt(process.env['NODE_FORCE_READLINE'], 10)) {
} else if (parseInt(process.env.NODE_FORCE_READLINE, 10)) {
opts.terminal = true;

// Emulate Ctrl+C if we're emulating terminal
Expand All @@ -754,7 +754,7 @@ function Interface(stdin, stdout, args) {
});
}
}
if (parseInt(process.env['NODE_DISABLE_COLORS'], 10)) {
if (parseInt(process.env.NODE_DISABLE_COLORS, 10)) {
opts.useColors = false;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/internal/child_process.js
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ ChildProcess.prototype.kill = function(sig) {
if (sig === 0) {
signal = 0;
} else if (!sig) {
signal = constants['SIGTERM'];
signal = constants.SIGTERM;
} else {
signal = constants[sig];
}
Expand Down
2 changes: 1 addition & 1 deletion lib/module.js
Original file line number Diff line number Diff line change
Expand Up @@ -639,7 +639,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;
Expand Down

0 comments on commit 969c39e

Please sign in to comment.