summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/strict.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2017-11-25 23:18:02 -0500
committercjihrig <cjihrig@gmail.com>2017-11-27 21:58:07 -0500
commitc2d738db8053a0e090aabbeeb088b34c3da7b7ad (patch)
tree3e8760805c82f61936df894149c95a5d2c0320ff /tools/eslint/lib/rules/strict.js
parenta177708e338cc770f15405d5b706da094f101aa0 (diff)
downloadnode-new-c2d738db8053a0e090aabbeeb088b34c3da7b7ad.tar.gz
tools: update to ESLint 4.12.0
PR-URL: https://github.com/nodejs/node/pull/16948 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'tools/eslint/lib/rules/strict.js')
-rw-r--r--tools/eslint/lib/rules/strict.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/tools/eslint/lib/rules/strict.js b/tools/eslint/lib/rules/strict.js
index bb926f6661..433b471367 100644
--- a/tools/eslint/lib/rules/strict.js
+++ b/tools/eslint/lib/rules/strict.js
@@ -109,19 +109,19 @@ module.exports = {
}
/**
- * Determines whether a reported error should be fixed, depending on the error type.
- * @param {string} errorType The type of error
- * @returns {boolean} `true` if the reported error should be fixed
- */
+ * Determines whether a reported error should be fixed, depending on the error type.
+ * @param {string} errorType The type of error
+ * @returns {boolean} `true` if the reported error should be fixed
+ */
function shouldFix(errorType) {
return errorType === "multiple" || errorType === "unnecessary" || errorType === "module" || errorType === "implied" || errorType === "unnecessaryInClasses";
}
/**
- * Gets a fixer function to remove a given 'use strict' directive.
- * @param {ASTNode} node The directive that should be removed
- * @returns {Function} A fixer function
- */
+ * Gets a fixer function to remove a given 'use strict' directive.
+ * @param {ASTNode} node The directive that should be removed
+ * @returns {Function} A fixer function
+ */
function getFixFunction(node) {
return fixer => fixer.remove(node);
}