eslint 4.4.0 → 4.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ v4.4.1 - August 7, 2017
2
+
3
+ * ec93614 Fix: no-multi-spaces to avoid reporting consecutive tabs (fixes #9079) (#9087) (Teddy Katz)
4
+
1
5
  v4.4.0 - August 5, 2017
2
6
 
3
7
  * 89196fd Upgrade: Espree to 3.5.0 (#9074) (Gyandeep Singh)
@@ -76,8 +76,11 @@ module.exports = {
76
76
  }
77
77
  const rightToken = tokensAndComments[leftIndex + 1];
78
78
 
79
- // Ignore tokens that have less than 2 spaces between them or are on different lines
80
- if (leftToken.range[1] + 2 > rightToken.range[0] || leftToken.loc.end.line < rightToken.loc.start.line) {
79
+ // Ignore tokens that don't have 2 spaces between them or are on different lines
80
+ if (
81
+ !sourceCode.text.slice(leftToken.range[1], rightToken.range[0]).includes(" ") ||
82
+ leftToken.loc.end.line < rightToken.loc.start.line
83
+ ) {
81
84
  return;
82
85
  }
83
86
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint",
3
- "version": "4.4.0",
3
+ "version": "4.4.1",
4
4
  "author": "Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",
5
5
  "description": "An AST-based pattern checker for JavaScript.",
6
6
  "bin": {