diff options
author | cjihrig <cjihrig@gmail.com> | 2017-11-25 23:18:02 -0500 |
---|---|---|
committer | cjihrig <cjihrig@gmail.com> | 2017-11-27 21:58:07 -0500 |
commit | c2d738db8053a0e090aabbeeb088b34c3da7b7ad (patch) | |
tree | 3e8760805c82f61936df894149c95a5d2c0320ff /tools/eslint/lib/rules/strict.js | |
parent | a177708e338cc770f15405d5b706da094f101aa0 (diff) | |
download | node-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.js | 16 |
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); } |