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

tools: update ESLint to 5.0.0 #20855

Merged
merged 2 commits into from
Jun 24, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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.
1 change: 1 addition & 0 deletions test/es-module/test-esm-forbidden-globals.mjs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// Flags: --experimental-modules
import '../common';

// eslint-disable-next-line no-undef
if (typeof arguments !== 'undefined') {
throw new Error('not an ESM');
}
Expand Down
3 changes: 2 additions & 1 deletion test/parallel/test-console-is-a-namespace.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ require('../common');
const { test, assert_equals, assert_true, assert_false } =
require('../common/wpt');

global.console = global.console; // Should not throw.
// Assigning to itself should not throw.
global.console = global.console; // eslint-disable-line no-self-assign

const self = global;

Expand Down
4 changes: 2 additions & 2 deletions test/parallel/test-http2-socket-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ server.on('stream', common.mustCall(function(stream, headers) {
common.expectsError(() => (socket.write = undefined), errMsg);

// Resetting the socket listeners to their own value should not throw.
socket.on = socket.on;
socket.once = socket.once;
socket.on = socket.on; // eslint-disable-line no-self-assign
socket.once = socket.once; // eslint-disable-line no-self-assign

stream.respond();

Expand Down
285 changes: 193 additions & 92 deletions tools/node_modules/eslint/README.md

Large diffs are not rendered by default.

17 changes: 11 additions & 6 deletions tools/node_modules/eslint/bin/eslint.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

21 changes: 0 additions & 21 deletions tools/node_modules/eslint/conf/blank-script.json

This file was deleted.

3 changes: 2 additions & 1 deletion tools/node_modules/eslint/conf/default-cli-options.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

130 changes: 3 additions & 127 deletions tools/node_modules/eslint/conf/environments.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 5 additions & 2 deletions tools/node_modules/eslint/conf/eslint-recommended.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 13 additions & 1 deletion tools/node_modules/eslint/lib/api.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 17 additions & 2 deletions tools/node_modules/eslint/lib/cli-engine.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 9 additions & 6 deletions tools/node_modules/eslint/lib/cli.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading