summaryrefslogtreecommitdiff
path: root/tools/eslint/lib/rules/no-trailing-spaces.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/eslint/lib/rules/no-trailing-spaces.js')
-rw-r--r--tools/eslint/lib/rules/no-trailing-spaces.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/eslint/lib/rules/no-trailing-spaces.js b/tools/eslint/lib/rules/no-trailing-spaces.js
index b5d2f8d1b5..598bbea4f9 100644
--- a/tools/eslint/lib/rules/no-trailing-spaces.js
+++ b/tools/eslint/lib/rules/no-trailing-spaces.js
@@ -49,7 +49,7 @@ module.exports = {
const options = context.options[0] || {},
skipBlankLines = options.skipBlankLines || false,
- ignoreComments = typeof options.ignoreComments === "undefined" || options.ignoreComments;
+ ignoreComments = typeof options.ignoreComments === "boolean" && options.ignoreComments;
/**
* Report the error message