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 7.6.0 #34589

Merged
merged 2 commits into from
Aug 3, 2020
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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions tools/eslint-rules/async-iife-no-unused-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ const message =
'(e.g. with `.then(common.mustCall())`)';

module.exports = {
meta: {
fixable: 'code'
},
create: function(context) {
let hasCommonModule = false;
return {
Expand Down
4 changes: 4 additions & 0 deletions tools/eslint-rules/crypto-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,3 +120,7 @@ module.exports = function(context) {
'Program:exit': () => reportIfMissingCheck()
};
};

module.exports.meta = {
fixable: 'code'
};
4 changes: 4 additions & 0 deletions tools/eslint-rules/eslint-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,3 +58,7 @@ module.exports = function(context) {
'Program:exit': () => reportIfMissing(context)
};
};

module.exports.meta = {
fixable: 'code'
};
4 changes: 4 additions & 0 deletions tools/eslint-rules/inspector-check.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ module.exports = function(context) {
'Program:exit': () => reportIfMissing(context)
};
};

module.exports.meta = {
fixable: 'code'
};
4 changes: 4 additions & 0 deletions tools/eslint-rules/lowercase-name-for-primitive.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,7 @@ module.exports = function(context) {
[astSelector]: (node) => checkNamesArgument(node)
};
};

module.exports.meta = {
fixable: 'code'
};
4 changes: 4 additions & 0 deletions tools/eslint-rules/non-ascii-character.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,7 @@ module.exports = (context) => {
Program: (node) => reportIfError(node, context.getSourceCode())
};
};

module.exports.meta = {
fixable: 'code'
};
3 changes: 3 additions & 0 deletions tools/eslint-rules/prefer-assert-iferror.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
const utils = require('./rules-utils.js');

module.exports = {
meta: {
fixable: 'code'
},
create(context) {
const sourceCode = context.getSourceCode();
let assertImported = false;
Expand Down
4 changes: 4 additions & 0 deletions tools/eslint-rules/prefer-assert-methods.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,3 +42,7 @@ module.exports = function(context) {
}
};
};

module.exports.meta = {
fixable: 'code'
};
4 changes: 2 additions & 2 deletions tools/node_modules/eslint/README.md

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

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

10 changes: 10 additions & 0 deletions tools/node_modules/eslint/lib/rule-tester/rule-tester.js

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

27 changes: 23 additions & 4 deletions tools/node_modules/eslint/lib/rules/no-duplicate-case.js

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

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

2 changes: 1 addition & 1 deletion tools/node_modules/eslint/messages/no-config-found.txt

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

2 changes: 1 addition & 1 deletion tools/node_modules/eslint/messages/plugin-conflict.txt

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

2 changes: 1 addition & 1 deletion tools/node_modules/eslint/messages/plugin-missing.txt

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

2 changes: 1 addition & 1 deletion tools/node_modules/eslint/messages/whitespace-found.txt

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

2 changes: 1 addition & 1 deletion tools/node_modules/eslint/package.json

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