diff --git a/tools/eslint-rules/async-iife-no-unused-result.js b/tools/eslint-rules/async-iife-no-unused-result.js index 50016619d59..bb089de8832 100644 --- a/tools/eslint-rules/async-iife-no-unused-result.js +++ b/tools/eslint-rules/async-iife-no-unused-result.js @@ -12,6 +12,9 @@ const message = '(e.g. with `.then(common.mustCall())`)'; module.exports = { + meta: { + fixable: 'code' + }, create: function(context) { let hasCommonModule = false; return { diff --git a/tools/eslint-rules/crypto-check.js b/tools/eslint-rules/crypto-check.js index 93a0c1ec865..4704b550a36 100644 --- a/tools/eslint-rules/crypto-check.js +++ b/tools/eslint-rules/crypto-check.js @@ -120,3 +120,7 @@ module.exports = function(context) { 'Program:exit': () => reportIfMissingCheck() }; }; + +module.exports.meta = { + fixable: 'code' +}; diff --git a/tools/eslint-rules/eslint-check.js b/tools/eslint-rules/eslint-check.js index fcfd7f3f900..0edf7d2899c 100644 --- a/tools/eslint-rules/eslint-check.js +++ b/tools/eslint-rules/eslint-check.js @@ -58,3 +58,7 @@ module.exports = function(context) { 'Program:exit': () => reportIfMissing(context) }; }; + +module.exports.meta = { + fixable: 'code' +}; diff --git a/tools/eslint-rules/inspector-check.js b/tools/eslint-rules/inspector-check.js index a56bb9be4c4..bb5dc27bff5 100644 --- a/tools/eslint-rules/inspector-check.js +++ b/tools/eslint-rules/inspector-check.js @@ -59,3 +59,7 @@ module.exports = function(context) { 'Program:exit': () => reportIfMissing(context) }; }; + +module.exports.meta = { + fixable: 'code' +}; diff --git a/tools/eslint-rules/lowercase-name-for-primitive.js b/tools/eslint-rules/lowercase-name-for-primitive.js index cfe17c06c12..274dcd1c9dc 100644 --- a/tools/eslint-rules/lowercase-name-for-primitive.js +++ b/tools/eslint-rules/lowercase-name-for-primitive.js @@ -53,3 +53,7 @@ module.exports = function(context) { [astSelector]: (node) => checkNamesArgument(node) }; }; + +module.exports.meta = { + fixable: 'code' +}; diff --git a/tools/eslint-rules/non-ascii-character.js b/tools/eslint-rules/non-ascii-character.js index e67aac7cd91..6588125d33d 100644 --- a/tools/eslint-rules/non-ascii-character.js +++ b/tools/eslint-rules/non-ascii-character.js @@ -59,3 +59,7 @@ module.exports = (context) => { Program: (node) => reportIfError(node, context.getSourceCode()) }; }; + +module.exports.meta = { + fixable: 'code' +}; diff --git a/tools/eslint-rules/prefer-assert-iferror.js b/tools/eslint-rules/prefer-assert-iferror.js index 2129600e2d4..63430d70af9 100644 --- a/tools/eslint-rules/prefer-assert-iferror.js +++ b/tools/eslint-rules/prefer-assert-iferror.js @@ -8,6 +8,9 @@ const utils = require('./rules-utils.js'); module.exports = { + meta: { + fixable: 'code' + }, create(context) { const sourceCode = context.getSourceCode(); let assertImported = false; diff --git a/tools/eslint-rules/prefer-assert-methods.js b/tools/eslint-rules/prefer-assert-methods.js index 2917d40de40..400a5d54759 100644 --- a/tools/eslint-rules/prefer-assert-methods.js +++ b/tools/eslint-rules/prefer-assert-methods.js @@ -42,3 +42,7 @@ module.exports = function(context) { } }; }; + +module.exports.meta = { + fixable: 'code' +};